【问题标题】:How Remove old dll in visual studio?如何删除 Visual Studio 中的旧 dll?
【发布时间】:2017-07-27 05:52:56
【问题描述】:

我删除了旧版本 Newtonsoft.Json 并添加了新版本。运行程序时在 package.config 中显示此错误 <package id="Newtonsoft.Json" version="7.0.1" targetFramework="net45" /> 并在 web.config 中

  <dependentAssembly>
    <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
    <bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="7.0.0.0" />
  </dependentAssembly>

如何在 Visual Studio 中完全删除旧版本?

【问题讨论】:

  • 打开解决方案资源管理器,展开引用并删除所有不需要的 dll。
  • 这个解决方案没有解决我的问题!
  • 编辑 oldVersion="0.0.0.0-7.0.1.0"
  • 这个解决方案没有解决我的问题!

标签: asp.net visual-studio web-config packages


【解决方案1】:

看看你的项目中是否有一些残余。 在解决方案资源管理器中,右键单击项目并选择“卸载项目”。再次右键单击并选择“编辑...”。现在您可以看到项目设置的 Xml。看看它是否调用的是旧版本。

【讨论】:

    【解决方案2】:

    试试这个可能对你有帮助

    <dependentAssembly>
    <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
    <bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="7.0.0.1" />
    </dependentAssembly>
    

    将新版本更改为 7.0.0.1

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-06-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多