asp.netsatellite-assembly

Satellite assembly is not picked up by ASP.NET app


I have a web project called "TestResourceApp" with Labels.resx in App_GlobalResources folder. I want to add another language by creating a satellite assembly.

Here are the steps I took to create the satellite assembly. The default text always get displayed. What did I do wrong ?

1) Create Labels.fr.resx in a different folder.

2) Generate resource file:

Resgen Labels.fr.resx TestResourceApp.App_GlobalResources.Labels.fr.resources

3) Generate satellite assembly:

AL /t:lib /embed:TestResourceApp.App_GlobalResources.Labels.fr.resources /out:french.dll /c:fr

4) Copy french.dll to TestResourceApp/bin/fr

I have uiculture set to auto in web.config and I have change the language on the browser.


Solution

  • It's complicated but here are a few tips for those who run into this problem: