码迷,mamicode.com
首页 > Windows程序 > 详细

The type name 'IComponentConnector' could not be found in the namespace 'System.Windows.Markup'

时间:2018-03-22 00:27:29      阅读:403      评论:0      收藏:0      [点我收藏+]

标签:运行   component   window   资源管理器   依赖   资源管理   解决方法   dll   右键   

场景:Visual Studio写WPF项目时,想要生成XML文件,默认的WPF项目没有引入System.XML这个dll。在【解决方案资源管理器——引用】右键添加了System.XML引用后,运行项目得到这个报错。

The type name ‘IComponentConnector‘ could not be found in the namespace ‘System.Windows.Markup‘

技术分享图片

原因:导入System.XML后,其中有部分内容又依赖于System.Xaml这个dll。

解决方法:所以继续添加System.Xaml的引用到项目中即可。

The type name 'IComponentConnector' could not be found in the namespace 'System.Windows.Markup'

标签:运行   component   window   资源管理器   依赖   资源管理   解决方法   dll   右键   

原文地址:https://www.cnblogs.com/guxin/p/8620683.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!