Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How to Use satallite Assembly

How to Use satallite Assembly

Scheduled Pinned Locked Moved C#
tutorialquestionlearning
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dwark106
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups