【问题标题】:how to include separately added system.configuration dll in nuget package如何在 nuget 包中包含单独添加的 system.configuration dll
【发布时间】:2015-06-23 05:56:11
【问题描述】:

我正在创建 demo.csproj 的 nuget 包,我已将 system.configuration 单独添加到该项目中,

我知道我可以通过以下方式将此 system.configuration.dll 添加到我的 nuget 中 使用添加 <dependencies> 标签或 y <file> 标签 .nuspec 文件, 但是有没有像copy local=true 这样的其他方法,而不是使用<dependencies> 或''标签?

【问题讨论】:

    标签: c# nuget nuget-package nuget-spec nugetgallery


    【解决方案1】:

    要引用标准 .NET Framework 程序集,请将以下内容添加到您的 .nuspec 文件中:

    <frameworkAssemblies>
      <frameworkAssembly assemblyName="System.Configuration" />
    </frameworkAssemblies>
    

    https://docs.nuget.org/create/nuspec-reference

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-04-16
      • 1970-01-01
      • 2021-08-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-11-15
      • 1970-01-01
      相关资源
      最近更新 更多