【发布时间】:2019-04-02 19:30:10
【问题描述】:
在 Azure devops 中,我想发出一个传递选项 IncludeReferencedProjects 的 nuget pack 命令。我的仓库在 TFVC 中,所以我不相信我可以使用 azure-pipelines.yml。我相信我必须通过视觉设计师来做到这一点。我没有看到使用 pack 命令类型将其他参数传递给 nuget 的选项。这让我觉得我必须为 nuget 使用自定义命令类型。当我使用自定义命令类型时,我可以指定 -IncludeReferencedProjects 但我似乎无法指定 **\*.csproj 作为要打包的项目。如果我这样做,命令将失败:
[command]C:\hostedtoolcache\windows\NuGet\4.1.0\x64\nuget.exe pack **\*.csproj -IncludeReferencedProjects -Symbols -Verbosity Detailed -NonInteractive
System.IO.IOException: The filename, directory name, or volume label syntax is incorrect.
如何使用可视化设计器将所有带有 IncludeReferencedProjects 标志的 csproj 输出打包?这是我在设计师中的图片:
【问题讨论】:
标签: azure azure-devops nuget