简体   繁体   English

System.Windows.Interactivity DLL计数

[英]System.Windows.Interactivity DLL Count

I am using the Expression Blend SDK and have references to System.Windows.Interactivity so that I can take advantage of Behaviour s and EventTrigger s etc. Great. 我正在使用Expression Blend SDK,并且具有对System.Windows.Interactivity引用,因此我可以利用BehaviourEventTrigger等。很好。

I noticed recently that using this library copies System.Windows.Interactivity.dll , but also lots of other files/folders to my bin folder. 我最近注意到,使用该库会将System.Windows.Interactivity.dll复制到我的bin文件夹中,而且还会复制许多其他文件/文件夹。

Directories: ar, de, fr, it, et al. 目录: ar,de,fr,it等。 (clearly culture/localisation files). (显然是文化/本地化文件)。

Files: es-ES, es-GT, es-HN, et al. 文件: es-ES,es-GT,es-HN等。

I do not plan on localising my application in some of these languages/cultures. 我不打算将我的应用程序本地化为某些语言/文化。

What is the bare minimum I need for the use of System.Windows.Interactivity in my code and why are these files/folders included in the bin directory by the build process? 我在代码中使用System.Windows.Interactivity所需的最低限度是什么?为什么在构建过程中将这些文件/文件夹包含在bin目录中?

I would imagine that you only need to keep the ones that specify your particular country and language. 我想您只需要保留指定您的特定国家和语言的语言即可。 However, is it really worth removing them... they shouldn't be much bigger than a few Megabytes. 但是,删除它们是否真的值得...它们的大小不应超过几兆字节。

The one way that you can test which ones you can remove is by removing the ones that do not relate to the culture settings in your application and then trying to run the application... if it works, then it's ok to remove them. 您可以测试您可以删除哪些的一个方法是通过在应用程序中删除那些不涉及区域性设置的那些,然后试图运行该应用程序......如果成功,那么它的确定将其删除。 Mind you, when you run the application, it will rebuild and replace the removed dlls. 注意,当您运行该应用程序时,它将重建并替换已删除的dll。

UPDATE >>> 更新>>>

If you use ClickOnce to distribute your application, you might be able to remove these dll s from the published version if you open up the startup project properties page. 如果使用ClickOnce分发应用程序,则可以打开启动项目属性页, 从而可以从发布的版本中删除这些dll Go to the Publish tab, then click the Application Files button. 转到“ Publish选项卡,然后单击“ Application Files按钮。 In the Application Files dialog that opens, you can select which files are included with the published application. 在打开的“ Application Files对话框中,您可以选择发布的应用程序中包含哪些文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM