首页 > 技术文章 > 解决Newtonsoft.Json版本问题

mengzhixingping 2021-06-08 13:47 原文

  <runtime>
        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
            <dependentAssembly>
                <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30AD4FE6B2A6AEED" culture="neutral"/>
                <bindingRedirect oldVersion="0.0.0.0-12.0.0.0" newVersion="6.0.0.0"/>
            </dependentAssembly>
        </assemblyBinding>
    </runtime>
oldVersion 从什么版本到什么版本,都强制使用newVersion的版本
本例子说明从0-12版本都谁用6版本的

引用地址:https://www.cnblogs.com/tansea/p/newtonsoft_json_version_error.html

推荐阅读