【问题标题】:What purpose does <runtime> serve in app.config?<runtime> 在 app.config 中的作用是什么?
【发布时间】:2020-05-19 22:48:07
【问题描述】:

我刚刚为我的控制台应用程序更新了一些 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>

这整个部分以前不存在。我还有其他未在此处列出的软件包,仅包括已更新的软件包。 它以前运行良好,现在运行良好。这部分具体完成了什么,为什么不完整?

【问题讨论】:

标签: .net app-config


【解决方案1】:

如果您的 NuGet 项依赖于其他项,您可能对同一事物的多个版本有依赖关系,这是为了帮助解决这些问题。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2010-11-28
    • 1970-01-01
    • 2012-06-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-03-28
    相关资源
    最近更新 更多