Visual Studio 2010:为什么所有的外语文件夹? [英] Visual Studio 2010: why all the foreign language folders?
问题描述
在我的解决方案的 /bin/debug 文件夹中,我注意到许多看起来像是外语的文件夹,名称如ar"、bg"、ca"、"cs"、da"……一直到zh-Hant".每个文件夹都有这 4 个 DLL 的副本:
In the /bin/debug folder of my solution I've noticed a slew of what appear to be foreign language folders with names like "ar", "bg", "ca", "cs", "da"... all the way to "zh-Hant". The folders each have copies of these 4 DLLs:
- System.ComponentModel.DataAnnotations.resources.dll
- System.Windows.Controls.Data.Input.resources.dll
- System.Windows.Controls.Data.resources.dll
- System.Windows.Controls.resources.dll
我正在开发的 Silverlight 应用程序没有任何国际化支持,所以我无法弄清楚这些文件和文件夹是如何到达那里的.总而言之,它有将近 13 MB 的文件.
The Silverlight application I'm developing doesn't have any internationalization support, so I can't figure out how these files and folders got there. All in all, it's almost 13 MB of files.
更糟糕的是,当我删除它们时,它们会在我下次构建解决方案时重新生成.
Worse yet, when I delete them, they are regenerated the next time I build the solution.
有什么建议吗?
预计到达时间:
以下是 Silverlight 项目引用的 DLL 列表:
Here's the list of DLLs referenced by the Silverlight project:
- ESRI.ArcGIS.Client
- ESRI.ArcGIS.Client.Toolkit
- mscorlib
- 系统
- 系统核心
- System.Net
- System.Runtime.Serialization
- System.ServiceModel
- 系统.Windows
- System.Windows.Browser
- System.Windows.Controls
- System.Windows.Controls.Layout.Toolkit
- System.Windows.Controls.Navigation
- System.Windows.Interactivity
- 系统.Xml
推荐答案
我注意到一些引用的程序集倾向于使用本地化资源进行国际化,例如 Castle ActiveRecord.我刚刚检查了我正在处理的项目(使用 Castle ActiveRecord 和 ZedGraph - 它们都在单独的程序集中具有本地化资源),并且在构建后,语言文件夹在我的 bin
文件夹中重新创建.
I've noticed that some referenced assemblies tend to use localized resources for internationalization, for example Castle ActiveRecord.
I just checked with a project I'm working on (that uses Castle ActiveRecord and ZedGraph - both of which have localized resources in separate assemblies), and after building, the language folders were recreated in my bin
folder.
那么 imo,我相信您在项目中引用了一个具有本地化资源的类似程序集,可能是 Silverlight 程序集或 ArcGIS 程序集(从未使用过).
So imo, I believe you're referencing a similar assembly in your project that has localized resources, possibly the Silverlight assemblies or the ArcGIS assemblies (never worked with either).
这篇关于Visual Studio 2010:为什么所有的外语文件夹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!