如何从资源文件加载C#的winform字符串不重建字符串、加载、文件、资源

2023-09-06 19:12:29 作者:-年少无知才是梦`

我对.NET CF 3.5开发的应用程序,我要尽量本地化它多种语言。我做了一个全球性的资源文件,该文件是根据属性的文件夹和移动从code和形式的所有字符串的资源文件。我想要做的是有一个资源文件。我会翻译文件,并部署在每个设​​备上。但问题是:如果我改变资源文件并运行,而无需重建我仍然看到旧资源的应用。我错过了什么? 我设置的资源文件生成操作嵌入的资源。 谢谢

I have an application developed on .NET CF 3.5 and I try to localize it for multiple languages. I have made a global resource file that is under Properties folder and moved all strings from code and forms to the resource file. What I want to do is to have one resource file. I will translate the file and deploy on each device. But the problem is: if I change the resource file and run the application without rebuild I still see old resources. What I missed to do? I set resource file build action to Embedded resource. Thanks

推荐答案

HTTP ://www.$c$cproject.com/KB/dotnet/Localization.aspx

本文讨论如何处理你的问题,用两种不同的方法。

This article discusses how to handle your problem, by using two different approaches.

选项A讨论了如何创建一个包含嵌入的资源的本地化版本sattelite组装。这很可能是你想要做什么。

Option A discusses how to create a sattelite assembly containing a localized version of an embedded resource. This is most likely what you want to do.