首页 > 解决方案 > TFSBuild.exe 发送参数

问题描述

我正在尝试从 powershell 调用 xaml 构建定义。下面的命令工作正常。但我需要在运行时将 Clean 存储库值更改为“True”。

在此处输入图像描述

我应该如何修改我的命令?

命令:.\TFSBuild.exe start /collection:"https://myurl/tfs" /builddefinition:"Test\Sample.dev"

谢谢

标签: tfstfsbuild

解决方案


据我所知,在运行时TFSbuild command-line不支持覆盖Clean repository参数。我们必须在设计时通过编辑 xaml 定义来更改值。(不是运行时。)

Here's supported references for tfsbuild start command,很明显tfsbuild.exe没有开关/参数Clean repository.


推荐阅读