c# vs 错误代码CS0006 Metadata file xxxxxx.dll could not be found 解决方式

vs生成报错:

错误代码:CS0006

错误内容:Metadata file 'xxxxxx.dll' could not be found

错误原因:在错误列表中,查看警告内容后发现,有项目引用内容版本支持框架与项目目标框架版本不统一导致报错。

解决方式:

(1)在项目中右键-属性-应用程序,查看目标框架版本

c# vs 错误代码CS0006 Metadata file xxxxxx.dll could not be found 解决方式

 

 (2)项目引用中,右键移除版本不统一引用

c# vs 错误代码CS0006 Metadata file xxxxxx.dll could not be found 解决方式

 

 

(3)项目引用处右键-管理NuGet程序包

c# vs 错误代码CS0006 Metadata file xxxxxx.dll could not be found 解决方式

 

 

(4)搜索刚刚移除的引用名称,找到支持项目目标版本统一的引用版本,安装即可

 c# vs 错误代码CS0006 Metadata file xxxxxx.dll could not be found 解决方式

 

上一篇:Kafka学习笔记之Kakfa异常分析-Magic v0 does not support record headers


下一篇:SAP VA01 消息 没有用于售达方 XXXXXX 的客户主记录存在