tfsbuild - 您如何使 TeamBuild 2015 多个配置选项不适用于所有步骤?

标签 tfsbuild tfs-2015 azure-pipelines multi-configuration

我喜欢通过 TFS 2015 TeamBuild 中的“选项”选项卡实现 MultiConfiguration 背后的概念。但我不希望生成的“矩阵构建”适用于构建定义中的每一步。

我们通常希望运行自定义的“发布 VS SLN 编译步骤”only once在编译每个配置之后。我们希望“删除”这些步骤生成的工件 only once后编译步骤完成后。

现在,使用此 MultiConfiguration 功能会导致针对每个组合(通常是 BuildPlatform 和 BuildConfiguration)重复构建配方中的每个步骤。

有没有办法让 MultiConfiguration 仅适用于 Visual Studio Build 步骤?我想作为后备,我们不能使用 MultiConfiguration 并为 BuildPlatform 和 BuildConfiguration 的每个组合添加一个 Visual Studio Build 步骤。不过这有点蹩脚。

最佳答案

好吧,正如您在多配置下看到的展开描述:构建多个配置使用相同的步骤 .

enter image description here

因此,要么添加多次构建的自定义步骤,要么不添加该步骤。现在,您可能必须使用您在问题中提到的后备。

如果您认为这是一个必要的功能请求,您可以在 uservoice 中添加它。 TFS 管理员和 PM 将对其进行审核。

Uservoice: https://visualstudio.uservoice.com/forums/330519-team-services

关于tfsbuild - 您如何使 TeamBuild 2015 多个配置选项不适用于所有步骤?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36927526/

相关文章:

c# - CheckInGatedChanges 构建工作流中的事件位置

asp.net - TFS 不会删除外部 Dll

tfsbuild - TFS2015 : No gated check-in build triggered for changes

git - 使用 Visual Studio 部分暂存文件

tfs - 如何使用 TFS 数据创建自定义小部件?

npm - Azure 管道 "Cache@2"失败并显示 "##[error]The system cannot find the file specified"

msbuild - 错误创建应用程序包(UWP,Appx) - fatal error CMF1106 : failed to open input PDB file for reading

Azure devOps 构建管道 : Force fail yaml step. bash 以防出现 isql 问题

node.js - nodevars.bat 不被识别为内部或外部命令

git - Team Foundation Server 2015 (tfs2015) 在 orgin/remote 上运行 git gc --prune=now