我收到错误了
System.IO.FileLoadException :无法加载文件或程序集“Newtonsoft.Json、Version=4.5.0.0、Culture=neutral、PublicKeyToken=30ad4fe6b2a6aeed”或其依赖项之一。所定位的程序集的清单定义与程序集引用不匹配。(HRESULT例外: 0x80131040)
为我的CI构建
我试过的解决方案
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed"
culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
</dependentAssembly>它也不管用
发布于 2018-02-09 14:17:50
还有一个关于这个公开话题的建议。该错误出现在运行“分析”之后:项目设置中发生了更改。问题是:
项目/设置/构建/平台目标
出现了“任意CPU"。
回到x86 (或者在您的案例中可能是x64 )解决了这个问题。
https://stackoverflow.com/questions/22507189
复制相似问题