自定义软件包库破坏了主项目的web.config

时间:2018-10-23 13:32:29

标签: .net nuget nuget-package

我有一个自定义的.Net Framework库,其中包括以下软件包:

<packages>
  <package id="EntityFramework" version="6.2.0" targetFramework="net471" />
  <package id="Microsoft.AspNet.WebApi" version="5.2.6" targetFramework="net471" />
  <package id="Microsoft.AspNet.WebApi.Client" version="5.2.6" targetFramework="net471" />
  <package id="Microsoft.AspNet.WebApi.Core" version="5.2.6" targetFramework="net471" />
  <package id="Microsoft.AspNet.WebApi.WebHost" version="5.2.6" targetFramework="net471" />
  <package id="Microsoft.IdentityModel.JsonWebTokens" version="5.3.0" targetFramework="net471" />
  <package id="Microsoft.IdentityModel.Logging" version="5.3.0" targetFramework="net471" />
  <package id="Microsoft.IdentityModel.Tokens" version="5.3.0" targetFramework="net471" />
  <package id="MitarbeiterPackage" version="1.0.0.12" targetFramework="net471" />
  <package id="Newtonsoft.Json" version="11.0.2" targetFramework="net471" />
  <package id="NuGet.Client" version="4.2.0" targetFramework="net471" developmentDependency="true" />
  <package id="NuGet.CommandLine" version="4.7.1" targetFramework="net471" developmentDependency="true" />
  <package id="NuGet.Common" version="4.2.0" targetFramework="net471" developmentDependency="true" />
  <package id="NuGet.ContentModel" version="4.2.0" targetFramework="net471" developmentDependency="true" />
  <package id="NuGet.Frameworks" version="4.2.0" targetFramework="net471" developmentDependency="true" />
  <package id="NuGet.Packaging" version="4.2.0" targetFramework="net471" developmentDependency="true" />
  <package id="NuGet.Packaging.Core" version="4.2.0" targetFramework="net471" developmentDependency="true" />
  <package id="NuGet.Packaging.Core.Types" version="4.2.0" targetFramework="net471" developmentDependency="true" />
  <package id="NuGet.Repositories" version="4.2.0" targetFramework="net471" developmentDependency="true" />
  <package id="NuGet.RuntimeModel" version="4.2.0" targetFramework="net471" developmentDependency="true" />
  <package id="NuGet.Versioning" version="4.2.0" targetFramework="net471" developmentDependency="true" />
  <package id="System.IdentityModel.Tokens.Jwt" version="5.3.0" targetFramework="net471" />
  <package id="System.Security.Claims" version="4.3.0" targetFramework="net471" />
</packages>

我们还有一个运行中的私有NuGet服务器,我们在其中推送所有这些库。现在的问题是,当我将此软件包安装到任何主项目时,它将破坏整个web.config。中断表示删除configSectionssystem.dataoracle.manageddataaccess.clientsystem.web的某些部分。

有没有人知道为什么以及如何可以阻止我?我们所有其他软件包都运行良好。只有那一个会造成问题。

0 个答案:

没有答案