来自程序集的类型是使用较旧版本的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

查看:399
本文介绍了来自程序集的类型是使用较旧版本的blend sdk构建的,并且在Windows Presentation Foundation 4项目中不受支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在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

推荐答案

  1. 以管理员身份运行命令提示符

  1. 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

参考: https://connect.microsoft.com/VisualStudio/feedback/details/755407/xaml-designer-will-not-display-when-using-blend-sdk-行为

这篇关于来自程序集的类型是使用较旧版本的blend sdk构建的,并且在Windows Presentation Foundation 4项目中不受支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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