发现无法解决的相同从属程序集的不同版本之间的冲突错误 [英] Found conflicts between different versions of the same dependent assembly that could not be resolved error
问题描述
找到了无法解决的相同从属程序集的不同版本之间的冲突.将日志详细程度设置为详细"时,这些参考冲突会在构建日志中列出.
这是在将 Newtonsoft.Json 导入到我的App.Core(Portable)项目中之后发生的.
It's happened after I'm import Newtonsoft.Json to my App.Core(Portable) project.
在输出中查看:
"Microsoft.CSharp,版本= 2.0.5.0,文化=中性,PublicKeyToken = b03f5f7f11d50a3a"和"Microsoft.CSharp,版本= 4.0.0.0,文化=中性,PublicKeyToken = b03f5f7f11d50a3a"之间存在冲突. (任务编号:90) 2>选择"Microsoft.CSharp,版本= 2.0.5.0,文化=中性,PublicKeyToken = b03f5f7f11d50a3a",因为它是主要的,而不是"Microsoft.CSharp,版本= 4.0.0.0,文化=中性,PublicKeyToken = b03f5f7f11d50a3a". (TaskId:90)
There was a conflict between "Microsoft.CSharp, Version=2.0.5.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" and "Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a". (TaskId:90) 2> "Microsoft.CSharp, Version=2.0.5.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" was chosen because it was primary and "Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" was not. (TaskId:90)
我现在需要做什么?
推荐答案
我通过更新Newtonsoft.Json包对其进行了修复.
I fixed it by updating Newtonsoft.Json package.
这篇关于发现无法解决的相同从属程序集的不同版本之间的冲突错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!