Mar 28, 2007 03:41 PM|brodskye|LINK
In VS2005 in order to make use of GetGlobalResourceObject() I have to copy a .resx file into the folder App_GlobalResources of the VS. After the application is precompiled, the resource files are being compiled into the corresponding satellite
assemblies and deployed under the \bin\ folder by culture names. This all works fine.
However, I'm unable to add new satellite assemblies after the application has been precompiled. What I've done was:
1. Created a satellite assembly:
resgen resources.applicationresources.es-ES.resx resources.applicationresources.es-ES.resources
al /t:lib /culture:es-ES /embed:resources.applicationresources.es-ES.resources /out:App_GlobalResources.resources.dll
2. Created folder \bin\es-ES\ and deployed the .dll file there.
Unfortunately, the newly added satellite assembly is not being recognized by the GetGlobalResourceObject(), which falls back to the default (English) resource. There seems to be nothing wrong with the resource file because if I copy the same
.resx file into App_GlobalResources and then compile the application, everything works just fine.
What am I missing?