MSB3268 .Net 4.0工程 引用BCL错误
Severity Code Description Project File Line Suppression State
Warning MSB3268 The primary reference "C:\Users\Administrator\.nuget\packages\microsoft.bcl.async\1.0.168\lib\net40\Microsoft.Threading.Tasks.Extensions.dll" could not be resolved because it has an indirect dependency on the framework assembly "System.Threading.Tasks, Version=1.5.11.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v4.0". To resolve this problem, either remove the reference "C:\Users\Administrator\.nuget\packages\microsoft.bcl.async\1.0.168\lib\net40\Microsoft.Threading.Tasks.Extensions.dll" or retarget your application to a framework version which contains "System.Threading.Tasks, Version=1.5.11.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a". HttpTest C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets 2106
在报错工程内添加配置文件
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="Plugins;"/>
<dependentAssembly>
<assemblyIdentity name="System.Runtime" culture="neutral" publicKeyToken="b03f5f7f11d50a3a" />
<bindingRedirect oldVersion="0.0.0.0-2.6.8.0" newVersion="2.6.8.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Threading.Tasks" culture="neutral" publicKeyToken="b03f5f7f11d50a3a" />
<bindingRedirect oldVersion="0.0.0.0-2.6.8.0" newVersion="2.6.8.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
最新文章
- Hibernate全套增删改查+分页
- GDB的Breakpoint, Watchpoint和Catchpoint
- Effective Java 16 Favor composition over inheritance
- How can I pretty-print JSON in python?
- linux web php 安全相关设置
- 【转载】NIO服务端序列图
- ubuntu安装XHProf
- UVA - 11400 Lighting System Design (区间DP)
- 用《内网穿山甲》把本地IIS中的站点共享到远程访问
- socket和抓包工具wireshark
- iOS原生自动布局NSLayoutConstraint
- Linux---基础指令(一)
- xclip for windows
- 一脸懵逼学习Hive的使用以及常用语法(Hive语法即Hql语法)
- vue-cli脚手架之webpack.test.conf.js
- ES系列十四、ES聚合分析(聚合分析简介、指标聚合、桶聚合)
- 【转载】linux下升级npm以及node
- Oracle RAC管理及维护命令详解
- 定时器setInterval, innerText获取文本, charAt()获取单个字符串, substring(1, content.length)获取范围内的字符串, 实现字符串的滚动效果
- http webservice socket的区别
热门文章
- Linux下安装mysql(2) 及常见问题解决(CentOS)
- AbsoluteLayout绝对布局
- muduo源代码分析--Reactor在模型muduo使用(两)
- OpenCV dll 源码调试—附加到进程
- Python经常使用内置函数介绍【filter,map,reduce,apply,zip】
- WPF中制作立体效果的文字或LOGO图形
- Atitit.Gui控制and面板----db数据库领域----- .比较数据库同步工具 vOa
- 右键计算机->;属性->;高级系统设置->;高级->;环境变量,添加环境变量(推荐)
- Scala(一) 环境搭建和HelloWorld
- 上传图片时,使用GDI+中重绘方式将CMYK图片转为RGB图片