nuget更新导致的问题?

版权声明:版权所有,需要请联系作者 https://blog.csdn.net/weixin_42930928/article/details/83926455

在使用.net framework 4.7.2写asp.net mvc的过程中,由于使用nuget更新了一下系统相关的类库,更新的类库如下,升级到了4.3.0版本

导致问题如下:由于是系统添加的类库,有些无法删除,如system.core;

 在web.config中注释掉对此的引用就可以了,我项目中需要注释的代码如下:

<dependentAssembly>
    <assemblyIdentity name="System.Runtime" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
    <bindingRedirect oldVersion="0.0.0.0-4.1.0.0" newVersion="4.1.0.0" />
</dependentAssembly>
<dependentAssembly>
    <assemblyIdentity name="System.Runtime.Extensions" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
    <bindingRedirect oldVersion="0.0.0.0-4.1.2.0" newVersion="4.1.2.0" />
</dependentAssembly>
<dependentAssembly>
    <assemblyIdentity name="System.Linq" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
    <bindingRedirect oldVersion="0.0.0.0-4.1.0.0" newVersion="4.1.0.0" />
</dependentAssembly>

猜你喜欢

转载自blog.csdn.net/weixin_42930928/article/details/83926455