How do I combine all my localization satellite assembies into the EXE?

送分小仙女□ 提交于 2019-12-12 07:20:10

问题


I've started adding multiple languages to my project using resx files (eg. MyText.resx, MyText.ru-RU.resx, etc.).

When I compile, I end up with files like this:

MyApp.exe ru-RU\MyApp.resources.dll es-ES\MyApp.resources.dll

Is there any easy way I can have everything compiled into the EXE? It's just a small utility which I distribute in a zip file, and it was nice that it didn't have tons of associated files!

I've been reading about the AssemblyLinker, but I'm not sure it does what I want. The EXE needs to behave as if those folders were there, and load the correct localisations for the users language.


回答1:


You can use "Netz" to re-pack your Assemblies after compilation. They state in their helpfile that localized satellite assemblies are working seamlessly with .Net 1.1 and there is a workaround for later versions.



来源:https://stackoverflow.com/questions/1850075/how-do-i-combine-all-my-localization-satellite-assembies-into-the-exe

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!