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

nuget更新导致的问题?

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

nuget更新导致的问题?

 在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>

nuget更新导致的问题?

相关文章: