使用Team Build进行构建时,Silverlight项目的语言文件夹 [英] Language folders for Silverlight projects when building with Team Build

查看:63
本文介绍了使用Team Build进行构建时,Silverlight项目的语言文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的解决方案中有一个Silverlight 4项目.当我在Team Build中自动化Silverlight项目的编译时,我在输出文件夹中找到了一长串包含Silverlight翻译的文件夹.

I have a Silverlight 4 project in my solution. When I automate the compilation of the Silverlight project in Team Build, I get in my output folder a long list of folders that have the Silverlight translations in it.

这些文件夹不存在于本地版本(可从Visual Studio编译)中,并且我不希望使用这些文件夹,因为我只针对一种语言.我还没有找到一个设置来指定不获取这些文件夹,甚至更好地指定我要支持的语言.

These folders are not present in a local build (compile from Visual Studio), and I don't want them since I am targeting only one language. I have not found a setting to specify to not get these folders, and even better specify the languages I want to support.

有人知道如何摆脱这些文件夹,而无需向构建中添加删除文件夹的任务.

Does anybody know how to get rid of these folders, without adding a task to the build to remove the folders.

推荐答案

打开Windows资源管理器.转到C:\ Program Files \ Microsoft SDKs \ Silverlight \ v4.0 \ Libraries \ Client. (如果运行的是64位Windows,则为C:\ Program Files(x86)\ Microsoft SDKs \ Silverlight \ v4.0 \ Libraries \ Client \).在该位置,您会看到一堆语言/区域性文件夹.

Open Windows Explorer. Go to C:\Program Files\Microsoft SDKs\Silverlight\v4.0\Libraries\Client. (C:\Program Files (x86)\Microsoft SDKs\Silverlight\v4.0\Libraries\Client\ if you're running 64-bit Windows). In that location, you will see a bunch of language/culture folders.

  • 创建一个新文件夹.我将我的名字命名为未使用的文化".
  • 将所有不想使用的区域性文件夹移动到 新建文件夹.确保不要移动设计"文件夹,该文件夹显示在文件夹列表中区域性文件夹的中间.
  • 在您的项目中,删除Bin,Release等文件夹的内容.重建.
  • 当您想增加对另一种文化的支持时,只需移动您想要的一种 回到原始位置.
  • 无论何时获得Silverlight SDK的更新,您都可能不得不再次执行一次.
  • Create a new folder. I named mine "Unused Cultures."
  • Move all the culture folders that you do not want to use to the the new folder. Be sure NOT to move the "Design" folder, which appears in the middle of the culture folders in the folder list.
  • In your project, delete the contents of the Bin, Release, etc. folders. Rebuild.
  • When you want to add support for another culture, just move the one you want back to the original location.
  • Whenever you get an update to the Silverlight SDK, you will probably have to do this again.

这篇关于使用Team Build进行构建时,Silverlight项目的语言文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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