近期将手头的一个vs2013的WPF项目,升级至VS2015,显示一个错误信息:
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中运行命令行;
-
cd至如下路径:
cd C:\Program Files (x86)\Microsoft SDKs\Expression\Blend\.NETFramework\v4.5\Libraries\
-
注册dll:
gacutil -i System.Windows.Interactivity.dll
-
重新启动VS2015并打开项目,问题得到解决。