NewtonSoft StreamingContext与Microsoft.Net framework mscorlib.dll冲突
我在一个SharePoint项目中添加了Newtonsoft 3.5 compact dll,在构建该项目时,我遇到以下错误NewtonSoft StreamingContext与Microsoft.Net framework mscorlib.dll冲突,.net,sharepoint,json.net,.net,Sharepoint,Json.net,我在一个SharePoint项目中添加了Newtonsoft 3.5 compact dll,在构建该项目时,我遇到以下错误 错误9类型“System.Runtime.Serialization.StreamingContext”存在于“C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll”和“C:\Windows\assembly\GAC\U MSIL\Newtonsoft.Json.Compact\3.5.0.0\uu 30ad
错误9类型“System.Runtime.Serialization.StreamingContext”存在于“C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll”和“C:\Windows\assembly\GAC\U MSIL\Newtonsoft.Json.Compact\3.5.0.0\uu 30ad4fe6b2a6eed\Newtonsoft.Json.Compact.dll”中E:\Projects\Khagesh\PE-TFS\Solutions\Exceptions\Exceptions\Exception.cs
通过删除Newtonsoft的引用,此错误不会出现。但是,我需要两个dll。我删除了
Newtonsoft.Json.Compact.dll
并添加了Newtonsoft.Json.Net20.dll
,一切正常。我不知道为什么会有这两个DLL以及何时使用哪一个