Nuget 在多个项目中创建 app.config 个文件

Nuget creates app.config files in multiple projects

我开始在我的解决方案中使用 Nuget 在某些项目中安装 Owin 和其他一些依赖项。我正在阅读有关 Nuget 和 app.config 文件的信息

Why NuGet adds app.config with assemblyBinding to LIBRARY projects during a NuGet package update?

这里

https://msdn.microsoft.com/en-us/library/7wd6ex19.aspx

现在我知道为什么要使用它们,绑定特定版本等等...

我遇到的问题是,我有一个包含 32 个项目的大型解决方案。

如果我在项目 C 中安装 Owin。app.config 文件出现在项目 A、B、D、F 中,其中包含以下信息。

<runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
          <assemblyIdentity name="Microsoft.Owin" 
              publicKeyToken="31bf3856ad364e35" culture="neutral" />
          <bindingRedirect oldVersion="0.0.0.0-3.0.1.0" newVersion="3.0.1.0" />
      </dependentAssembly>
    </assemblyBinding>
</runtime>

为什么我会收到这个?这些项目没有使用 OWIN。有什么办法可以避免这种情况吗?或者也许不使用 nuget 手动安装它?

谢谢。

P.S: 我用的是VS2015企业版

编辑:

我们的架构如下。我有安装了 Owin 的项目 WebApi。该项目被项目连接器引用。该项目连接器和所有引用它的项目都有以前的 app.config 文件。那是对的吗?如果他们不使用 OWIN,为什么有必要?

编辑 2:

我使用 VS2015 中的 nuget 包管理器从我的解决方案中卸载了所有 nuget 包,这些具有依赖项的文件仍然存在。

我建议信任 NuGet 并保留它所做的 app.config 更改(khellang explained why), 但如果它真的让你很烦,你可以