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

时间:2018-03-22 00:18:16   收藏:0   阅读:1205

场景: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的引用到项目中即可。

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

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!