Bootstrap

未能加载文件或程序集“Newtonsoft.Json, Version=4.5.0.0, Culture=neutral,解决

 

升级json.net版本时候报的错误

只需要解决.net和json版本冲突即可

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

11.0对应的是dll版本号

 

转载于:https://www.cnblogs.com/CallmeYhz/p/9212505.html

;