2

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

我知道我可以通过在 file 中添加tag 或 y tag 来将它添加system.configuration.dll到我的 nuget 中,但是有没有其他方法可以代替使用or '' tag?<dependencies><file>.nuspeccopy local=true<dependencies>

4

1 回答 1

5

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

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

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

于 2015-06-23T13:23:56.773 回答