繁体   English   中英

AzureDevops Nuget 包

[英]AzureDevops Nuget Pack

我有一个 .net class 库项目(4.7.2),它将构建在 AzureDevops 实例上。 在构建管道中,第一步是基于相应的 *.csproj 文件创建 nuget package。 在 class 库项目中有文件夹。 Now when the nuget package is created the nuget package also contains the folders of the project and not only the created *.dll file. 如何避免在创建的 Nuget package 中包含项目的文件夹?

要明确控制 package 中包含哪些文件,您可以在.nuspec 文件中指定文件标记。

<files>
    <file src="bin\Debug\*.dll" target="lib" />
    <file src="bin\Debug\*.pdb" target="lib" />
    <file src="tools\**\*.*" exclude="**\*.log" />
</files>

在这里查看更多信息

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM