1. 程式人生 > >Newtonsoft.Json 版本不一致導致錯誤

Newtonsoft.Json 版本不一致導致錯誤

gre newton code depend binding ken redirect 不一致 -c

可以在配置文件添加這部分,其他版本的不一致,也可使用這種方式解決.

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

Newtonsoft.Json 版本不一致導致錯誤