如何从资源文件加载C#的winform字符串不重建 [英] How to load C# winform strings from resource file without rebuild

查看:321
本文介绍了如何从资源文件加载C#的winform字符串不重建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对.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.

这篇关于如何从资源文件加载C#的winform字符串不重建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆