System.Windows.Interactivity:无法加载文件或程序集'System.Windows,版本= 2.0.5.0 [英] System.Windows.Interactivity: Could not load file or assembly 'System.Windows, Version=2.0.5.0

查看:1278
本文介绍了System.Windows.Interactivity:无法加载文件或程序集'System.Windows,版本= 2.0.5.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想引用System.Windows.Interactivity以<一href="http://stackoverflow.com/questions/4731718/does-treeview-use-command-bindings-for-expand-collapse">support IsExpanded行为命令

I am trying to reference System.Windows.Interactivity in order to support IsExpanded behavior command

但只要我添加对本次大会,我得到错误装载System.Windows 2.0。这似乎是一个已知的错误和解决方案似乎只是引用该程序集。

But as soon as i add a reference to this assembly, i get the error loading System.Windows 2.0. This appears to be a known bug, and solution appears to be to just reference that assembly.

我下载的Silverlight SDK,并在我的项目引用的程序有问题。

I downloaded Silverlight SDK, and referenced assembly in question in my project.

不过,现在我获得了大量的System.Windows,和WindowsBase.dll中之间的冲突。类如RoutedEventHandler中都存在..一定有办法来解决这个问题,因为我看到的人是成功的使用交互DLL使用WPF 4.0 ..

however, now i am getting lots of conflicts between System.Windows, and WindowsBase.dll. Classes such as RoutedEventHandler exist in both.. Must be a way to fix this, since i see people being successful in using that Interactivity dll with wpf 4.0..

推荐答案

如果你有一个WPF项目需要使用该组件的WPF特定版本,也许你拿了错误的.dll?

If you have a WPF project you need to use the WPF specific version of that assembly, maybe you took the wrong .dll?

下面是我的系统上两个相应的文件路径:

Here are the two respective file paths on my system:

C:\Program Files (x86)\Microsoft SDKs\Expression\Blend\.NETFramework\v4.0\Libraries\System.Windows.Interactivity.dll
C:\Program Files (x86)\Microsoft SDKs\Expression\Blend\Silverlight\v4.0\Libraries\System.Windows.Interactivity.dll

这篇关于System.Windows.Interactivity:无法加载文件或程序集'System.Windows,版本= 2.0.5.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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