相关疑难解决方法(0)

如何将System.Windows.Interactivity添加到项目中?

我的项目遗失了System.Windows.Interactivity.谷歌说我必须安装Expression Blend,但是在我的另一台电脑上我有这个库,我没有安装Expression Blend.那么应该有另一种方式获得System.Windows.Interactivity?我该怎么办?(现在我没有另一台电脑所以我不能只复制这个库:)

c# wpf

73
推荐指数
8
解决办法
11万
查看次数

System.Windows.Interactivity:无法加载文件或程序集'System.Windows,Version = 2.0.5.0

我试图引用System.Windows.Interactivity以支持IsExpanded行为命令

但是,只要我添加对此程序集的引用,我就会收到加载System.Windows 2.0的错误.这似乎是一个已知的错误,解决方案似乎只是引用该程序集.

我下载了Silverlight SDK,并在我的项目中引用了相关的程序集.

但是,现在我在System.Windows和WindowsBase.dll之间遇到了很多冲突.像RoutedEventHandler这样的类都存在于两者中.必须是解决这个问题的一种方法,因为我看到人们成功地将这个Interactivity dll与wpf 4.0一起使用.

.net c# silverlight wpf

7
推荐指数
1
解决办法
3万
查看次数

Visual Studio扩展无法找到所需的程序集

我为Visual Studio 2013编写了一个扩展.由于血腥的ComboBox错误,我不得不将System.Windows.Interactivity包含到我的项目中.要添加更多详细信息:

  1. <Project>使用其他解决方案程序集,例如<Project> .Editor,其中包含物理编辑器.
  2. <Project> .Editor引用System.Windows.Interactivity
  3. <Project>也引用System.Windows.Interactivity.事实上,我正在使用nuget加载Expression.Blend.Sdk包(它与WPF 4.5兼容)

效果:当包含所提到的ComboBox显示的编辑器的一部分时,我立即得到一个例外:

PresentationFramework.dll中出现'System.Windows.Markup.XamlParseException'类型的第一次机会异常

附加信息:无法加载文件或程序集'System.Windows.Interactivity,PublicKeyToken = 31bf3856ad364e35'或其依赖项之一.该系统找不到指定的文件.

我在实验实例和文件夹中运行扩展:

C:\Users\<user>\AppData\Local\Microsoft\VisualStudio\12.0Exp\Extensions\<Company>\<Extension>\1.0
Run Code Online (Sandbox Code Playgroud)

包含System.Windows.Interactivity.dll,但由于某种原因,它似乎没有被IDE看到.

更奇怪的是,我正在使用其他额外的软件包,比如IronPython,它们从来没有给我带来过这样的麻烦.

我该如何解决这个问题?


编辑:回应评论

实际上,InnerException包含调用的字段FusionLog,其中包含以下内容:

=== Pre-bind state information ===
LOG: DisplayName = System.Windows.Interactivity, PublicKeyToken=31bf3856ad364e35
 (Partial)
WRN: Partial binding information was supplied for an assembly:
WRN: Assembly Name: System.Windows.Interactivity, PublicKeyToken=31bf3856ad364e35 | Domain ID: 1
WRN: A partial bind occurs when only part of the assembly display name is provided.
WRN: This might result in the …
Run Code Online (Sandbox Code Playgroud)

.net c# wpf vsix visual-studio-2013

5
推荐指数
1
解决办法
1237
查看次数

标签 统计

c# ×3

wpf ×3

.net ×2

silverlight ×1

visual-studio-2013 ×1

vsix ×1