Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

Satellite assembly generated using AL.exe won't work

$
0
0

I have a project which contains an english resources file, and it's french couterpart.  Both files exist in the \Properties folder, and when I build through Visual Studio, everything works correctly.

 

If however, I use the command line tools to generate my satellite assemblies, it always defaults back to en-US.  No exceptions are thrown that I can tell, it just doesn't pick up the satellite assembly when generated by al.exe.

 

I have tried using al.exe with and without signing the assembly and using the /keyfile option.  The process I'm following is:

 

1)  Use resgen to create LocalizedStrings.txt from LocalizedStrings.resx

2)  Make language changes to LocalizedStrings.txt and save as LocalizedStrings.fr.txt

3)  Use resgen to create LocalizedStrings.fr.resx and then LocalizedStrings.fr.resources from LocalizedStrings.fr.txt

4)  Use al.exe to generate my satellite assembly using the LocalizedStrings.fr.resources file from prior step

5)  Copy the dll from prior step to the \Debug\bin\fr folder, and run the application (there is code in the application to set the culture, and it works with the VS2k5 build)

 

Here is the al.exe command line used in step 4): 

 

al /t:lib /embed:LocalizedStrings.fr.resources /culture:fr /MyApp.resources.dll /template:MyApp.dll

 

when trying it with a strong-named assembly, I'll also add the /keyfile option.

 

Nothing has worked, and I don't know what else to try.

 

There is not even an exception thrown that could help me debug.

 

Why would no exception be thrown but everything still default back to English? Thanks in advance.


 


Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>