如何限制建立只支持EN" Microsoft.Expression.Interactions.resources.dll&QUOT ;,并避免DE,KR,法国,西班牙等..? [英] How can I limit builds to only support EN "Microsoft.Expression.Interactions.resources.dll", and avoid DE, KR, FR, ES, etc...?

查看:564
本文介绍了如何限制建立只支持EN" Microsoft.Expression.Interactions.resources.dll&QUOT ;,并避免DE,KR,法国,西班牙等..?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我建立我的WPF项目,它创建若干个语言文件夹,每个包含Microsoft.Expression.Interactions.resources.dll。

When I build my WPF Project, it creates several language folders, each containing "Microsoft.Expression.Interactions.resources.dll".

奇怪的是,我从来没有创建我的资源串到其他语言的译本,但它仍然创造DE,KR,FR,ES文件夹。我只是需要的是EN。

The weird thing is that I never created translations of my resource strings to other languages, and yet it still creates DE, KR, FR, ES folders. What I just need is EN.

如何限制本地化只是EN?

How can I limit the localization to just EN?

推荐答案

您是因为你使用的.NET(直接或通过棱镜库)的混合SDK看到这些文件。该SDK包含本地化的资源因而他们得到包含在构建输出。

You're seeing those files because you're using the Blend SDK for .NET (either directly or through the Prism library). That SDK includes localized resources thus they get included in your build output.

下面是如何创建一个Silverlight构建了针对特定文化。它应该为WPF方式相同。它的JIST是:

Here's how you create a Silverlight build that targets a specific culture. It should work the same way for WPF. The jist of it is:


  1. 请在您的解决方案的新配置

  2. 编辑每个项目。文件中指定SupportedCulture为恩(注意外壳)。

如果您的解决方案是相当大的,这可能是很多工作。但说实话,不损害任何事都要在WPF应用程序这一额外的文件 - 他们只是采取了一个小的磁盘空间。你也可以只存档和船舶的EN文化资源。假设你定义自己的 NeutralResourcesLanguage作为恩你的应用程序将总是能够找到它的资源(他们会只是英文)。

If your solution is quite large this could be a lot of work. Honestly it doesn't harm anything to have this additional files in a WPF application -- they simply take up a little more disk space. You could also only archive and ship the en culture resources. Assuming you've defined your NeutralResourcesLanguage as en your the application will always be able to find its resources (they'll just be in English).

这篇关于如何限制建立只支持EN" Microsoft.Expression.Interactions.resources.dll&QUOT ;,并避免DE,KR,法国,西班牙等..?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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