How to Use satallite Assembly
-
Hi Everyone, I am making an application for language specification and using satallite assembly. If we use satallite assembly means there is no need to recompilation of application. What I am doing that is given below step by step. 1. Created file like string.txt,string.de-DE.txt,string.ja.txt 2. compile all txt file with "resgen.exe" at command prompt like "resgen string.de-DE.txt string.de-DE.resources. 3. Again compile all resources file with "al.exe" like "al /t:lib /embed:strings.de-DE.resources /culture:de /out:myApp.resources.dll" 4. Created folder in my application for different language specification like "de-DE","ja"(Folder name) 5. Put file in this folder like for "de-DE" folder for myApp.resources.dll,string.de-DE.resources,string.de-DE.txt 6. In coding part "myapp.cs" a) //static ResourceManager rm = new ResourceManager("myapp.string", Assembly.GetExecutingAssembly());//myapp is "namespace" static ResourceManager rm = new ResourceManager("myapp.string",(typeof(Class1).Assembly));//string is "base name" b) cultureinfo and switch case 7. Question is that if i don't make these resource file as satallite assembly then it works fine but if i make these resource file as satallite assembly and put the resource file and dll in folder then it doesn't work. 8. If i run this application it pick up default one english language specification but not pick up german or any other language. 9. I am following each step that is given in MSDN. Thanks