解决Newtonsoft.Json版本问题

时间:2021-06-08 23:12:21   收藏:0   阅读:0
  <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
评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!