来自程序集的类型是使用较旧版本的blend sdk构建的,并且在Windows Presentation Foundation 4项目中不受支持 [英] the type from assembly is built with an older version of blend sdk and is not supported in a windows presentation foundation 4 project
问题描述
我在VS 2013中创建了一个WPF项目.升级到VS 2015后,此错误在设计器中显示了从Blend SDK派生的类型:
I created a WPF project in VS 2013. After upgrading to VS 2015, this error showed in the designer on types derived from the Blend SDK:
程序集的类型是使用更老版本的blend sdk和 Windows Presentation Foundation 4项目不支持
the type from assembly is built with an older version of blend sdk and is not supported in a windows presentation foundation 4 project
推荐答案
-
以管理员身份运行命令提示符
Run Command Prompt as Administrator
将目录更改为Blend SDK:cd C:\Program Files (x86)\Microsoft SDKs\Expression\Blend\.NETFramework\v4.5\Libraries\
Change Directory to Blend SDK: cd C:\Program Files (x86)\Microsoft SDKs\Expression\Blend\.NETFramework\v4.5\Libraries\
注册DLL:gacutil -i System.Windows.Interactivity.dll
重新启动Visual Studio
Restart Visual Studio
这篇关于来自程序集的类型是使用较旧版本的blend sdk构建的,并且在Windows Presentation Foundation 4项目中不受支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!