簡體   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