【发布时间】:2018-12-25 15:06:59
【问题描述】:
我通过 Nuget 添加到我的项目 Newtonsoft.Json。
在我这样做之后,我发现 VS 添加了这些部分:
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-11.0.0.0" newVersion="11.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Common.Logging" publicKeyToken="af08829b84f0328e" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-2.2.0.0" newVersion="2.2.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
Q1:为什么要这样做?目的是什么?
Q2:为什么Common.Logging也会出现在那里?我从未通过 Nuget 添加 Common.Logging。
Q3:我需要通过 Nuget 添加 Common.Logging 吗?我试过,通过 Nuget 通过 Nuget 安装 Common.Logging,发现它也安装了 Common.Logging.Core。但是上面的配置部分没有改变!
有人可以用非常简单的语言解释我,而无需从 MSDN 复制粘贴这整个马戏团的用途吗?它是如何工作的,为什么 Common.Logging 突然被添加到这个部分,当我只需要 Newtonsoft.Json 时,我真的需要将它与 Common.Logging.Core 一起安装吗?
谢谢。
【问题讨论】:
-
这个问题有什么更新吗?你解决了这个问题吗?如果没有,请告诉我有关此问题的最新信息吗?
标签: visual-studio web-config nuget app-config