[C#] Newtonsoft.Json 版本冲突

xiaoxiao2021-02-27  486

在web.config或者app.config里面加上一段:

<runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="Newtonsoft.Json" culture="neutral" publicKeyToken="30ad4fe6b2a6aeed" /> <bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" /> </dependentAssembly> </assemblyBinding> </runtime>

转载请注明原文地址: https://www.6miu.com/read-2397.html

最新回复(0)