How to embed multilanguage *.resx (or *.resources) files in single EXE?

前端 未结 4 1940
无人及你
无人及你 2020-12-14 02:32

There are plenty of tutorials how to create multilanguage RESX files and how to create satellite assemblies with AL.exe, but I haven\'t found working example how to embed RE

4条回答
  •  遥遥无期
    2020-12-14 03:03

    You didn't find it because it's not the way the .NET framework works. .NET expects satellite DLLs in specifically named location (iow directories named after the language of the resources it contains. eg. de, de-DE, chs,...). If you don't work that way, .NET won't be able to apply its magic (which is to automatically pick the correct resource according to the current UI culture: Thread.CurrentThread.CurrentUICulture).

提交回复
热议问题