简体   繁体   English

编译项目中的resx文件或只使用resgen而不编译resx

[英]Compile resx files in the project or just use resgen without compiling resx

I am using 2 resx files in my project one for en-Us and other for de-DE (localization). 我在我的项目中使用2个resx文件,一个用于en-Us,另一个用于de-DE(本地化)。

I compile these resx files to resource files using resgen. 我使用resgen将这些resx文件编译为资源文件。

Can anyone please help me on the following two questions: 有谁可以帮我解决以下两个问题:

  1. If I need to add more resx files in the project say for fr-FR, would I need to compile the project again after adding he new resx file for fr-Fr in the project or can I just create the resx file and generate the .resources file from the resx using resgen tool without compiling the Visula studio project? 如果我需要在项目中添加更多resx文件,比如fr-FR,我是否需要在项目中为fr-Fr添加新的resx文件后再次编译项目,或者我可以创建resx文件并生成。使用resgen工具从resx获取资源文件而不编译Visula工作室项目?

  2. Can the .resource file generated from resx using resgen be embedded in the exe or would it remain as a standalone compiled binary alongwith the exe that uses the resources file? 使用resgen从resx生成的.resource文件是否可以嵌入到exe中,还是作为独立的编译二进制文件与使用资源文件的exe一起保留?

AFAIK 据我所知

1 - You can re-create new .resource file and just replace the old one 1 - 您可以重新创建新的.resource文件,只需替换旧文件即可

2 - You have to deploy resource files along with your assemblies 2 - 您必须将资源文件与程序集一起部署

see more here http://msdn.microsoft.com/en-us/library/21a15yht.aspx 在这里查看更多信息http://msdn.microsoft.com/en-us/library/21a15yht.aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM