MSBuild conflict between mscorlib 4.x and mscorlib 2.x
我最近正在调查一个生成失败,并看到一个关于程序集之间冲突的警告。我挖得更深了,我的房子告诉我:
There was a conflict between"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" and"mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes".
"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" was chosen because it was primary and"mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes" was not.`
我的解决方案包含几个控制台应用程序、许多类库和ASP.NET应用程序。我们建立在.NET 4.5.2之上。
我应该担心吗?
使用PCL库时,最好添加