问题:未能加载文件或程序集 Newtonsoft.Json, Version=4.5.0.0 的报错
原因:System.Net.Http.Formatting和Json.NET版本冲突
1 <runtime> 2 <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> 3 <dependentAssembly> 4 <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" /> 5 <bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" /> 6 </dependentAssembly> 7 </assemblyBinding> 8 </runtime>