我刚刚为我的Console应用程序更新了一些nuget包,现在我的app.config中有这个。
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.6.0" newVersion="4.0.6.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="log4net" publicKeyToken="669e0ddf0bb1aa2a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-2.0.8.0" newVersion="2.0.8.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
这整个部分以前是没有的。我还有其他的包没有列在这里,只有那些被更新的包被包括在内。这一节到底要完成什么,为什么不完整?
如果你的NuGet项目依赖于其他项目,你可能对同一事物的多个版本有依赖性,这是为了帮助解决这些问题。