Last post Aug 22, 2013 02:04 AM by jitumandalia
Aug 21, 2013 03:00 AM|jitumandalia|LINK
How does satellite assembly work in ASP.Net 2.0 web application?
I was assuming that the *.resources.dll files under culture specific folder en, en-US, es etc. contains compiled resources from the .resx files and .resx files need not be copied with deployment. But when I reflect the *.resources.dll file, it does not contain
that culture specific resources?
Also publishing ASP.Net 2.0 web application copies all the .resx files to destination folder and without the .resx files, the pages and control are not loaded properly.
Is there any reference document which explains this behavior?
Appreciated your time. Thanks.
Aug 21, 2013 03:58 AM|bmwz9|LINK
Aug 21, 2013 04:23 AM|jitumandalia|LINK
Thanks bmwz9. Appreciate your inputs.
Though I have gone through these links before but it does not clearly say how the satellite assemblies are built and why we still need the .resx files. And as I told when I reflect the *.resources.dll, it does not have any classes defined within it and has
resources which are in default language (English). So what is the use of the same?
Also I did not find any way there to build the .resx files to be included into *.resources.dll and not deploying .resx files, using Visual Studio.
Aug 21, 2013 07:34 AM|bmwz9|LINK
Here is some links talking about satellite assembly and how to build it
Aug 22, 2013 02:04 AM|jitumandalia|LINK
Thank you Mohamed.
I have gone through given articles and various other articles. Also tried various ways to create satellite assembly. I later realized that to get all the language resources to its own satellite assembly, I had to change the resx files' property "Build Action"
to "Embedded Resource". With that all the resources starte showing in satellite assembly.
Without that, to make all the resources to work, it is needed to get the resx files copied to the destination folder.