Foxtable(狐表)用户栏目专家坐堂 → [求助]发布时报错, 编译错误:项目当前包含对 Newtonsoft.Json 的多个版本的引用


  共有3100人关注过本帖树形打印复制链接

主题:[求助]发布时报错, 编译错误:项目当前包含对 Newtonsoft.Json 的多个版本的引用

帅哥哟,离线,有人找我吗?
有点蓝
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:106566 积分:541995 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2019/7/5 9:08:00 [显示全部帖子]

要这样处理
1、Newtonsoft.Json.dll还是使用回Foxtable原来的版本
2、Foxtable安装目录里有一个文件是:Foxtable.exe.config,修改里面的内容加上下面红色一段,黑色内容是原来就有的

……
  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="C1.C1Zip.4"
          publicKeyToken="79882d576c6336da"
          culture="neutral" />
        <bindingRedirect oldVersion="4.0.20191.359" newVersion="4.0.20183.338" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="C1.Win.Bitmap.4"
          publicKeyToken="944ae1ea0e47ca04"
          culture="neutral" />
        <bindingRedirect oldVersion="4.0.20183.338" newVersion="4.0.20191.359" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="C1.C1Excel.4"
          publicKeyToken="79882d576c6336da"
          culture="neutral" />
        <bindingRedirect oldVersion="4.0.20191.359" newVersion="4.0.20183.338" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="Newtonsoft.Json"
          publicKeyToken="30ad4fe6b2a6aeed"
          culture="neutral" />
        <bindingRedirect oldVersion="10.0.0.0" newVersion="12.0.0.0" />
      </dependentAssembly>
    </assemblyBinding>
  </runtime>
……

 回到顶部
帅哥哟,离线,有人找我吗?
有点蓝
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:106566 积分:541995 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2020/10/19 20:09:00 [显示全部帖子]

重装foxtable,然后重新改Foxtable.exe.config。注意不要复制其它版本的Newtonsoft.Json.dll覆盖默认的Newtonsoft.Json.dll
[此贴子已经被作者于2020/10/19 20:09:57编辑过]

 回到顶部