The type name 'IComponentConnector' could not be found in the namespace 'System.Windows.Markup'
Windows in The not 39 be type
2023-09-11 14:22:25 时间
场景: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://stackoverflow.com/questions/4387812/visualstudio-bug
相关文章
- Windows SubSystem for Linux(WSL)设置默认和设置默认登陆用户
- Windows下切分文件(GnuWin32)
- Android Studio 快捷键(windows +mac)
- K8s - Install Minikube in Windows
- [Ionic] Ionic Quickstart for Windows
- EasyDSS RTMP流媒体解决方案之Windows服务安装方案
- EasyPlayerPro(Windows)流媒体播放器开发之跨语言调用
- 使用winsw包装服务将nginx包装为Windows服务
- python卸载或者安装时提示There is a problem with this Windows Installer package.A program required for this install to complete could not be run. Contact your support personnel or package vendor
- MFC Windows 程序设计[180]之打印预览与打印设置(附源码)
- MFC Windows 程序设计[119]之扩展下拉列表框(附源码)
- Unexpected XML declaration. The XML declaration must be the first node in the document and no white
- Unexpected XML declaration. The XML declaration must be the first node in the document and no white
- 已解决FutureWarning: The default value of regex will change from True to False in a future version. In
- VS项目出现WINDOWS.H already included. MFC apps must not #include <Windows.h>
- WINDOWS.H already included. MFC apps must not #include <Windows.h>
- Ubuntu下编译Windows下C源码文件出现警告:make: Warning: File ‘md5.d‘ has modification time 0.69 s in the future
- step1—archr教程 windows
- The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar
- 解决办法:The name 'Response' does not exist in the current context
- C# 编写Windows Service(windows服务程序)
- 关闭Windows Hyper-V功能
- 【异常】FlinkException: The module flink-runtime-web could not be found in the class path
- Windows安装WSL进行机器学习(windows和Ubuntu同时使用)
- 操作系统权限提升(三)之Windows系统内核溢出漏洞提权