【发布时间】: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