在 TFS Build 中为多个配置构建 [英] Build for multiple configurations in TFS Build

查看:30
本文介绍了在 TFS Build 中为多个配置构建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以让 TFS Build 2017 为所有这些配置组合构建二进制文件:

  • VS2015、VS2017
  • Win32、x64
  • 调试、发布

我是否必须为这些组合中的每一个都进行构建步骤,还是可以使用某种魔法以简单的方式完成所有工作.

解决方案

您需要在构建定义的选项选项卡中启用多配置.文章:

之后,它会在构建过程中将配置拆分为多个构建.

对于不同的vs版本,您需要添加另一个步骤/任务并选择相应的vs版本.

Is it possible to make TFS Build 2017 to build binaries for all this configuration combinations:

  • VS2015, VS2017
  • Win32, x64
  • Debug, Release

Do I have to make a build step for each of this combinations, or can I use some sort of magic to do everything in a simple way.

解决方案

You need to enable Multi-configuration in Options tab of build definition. Article: How do I build multiple configurations for multiple platforms?

After that, it will split configurations to multiple builds during the build.

For different vs versions, you need to add another step/task and select corresponding vs version.

这篇关于在 TFS Build 中为多个配置构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆