在TFS中构建一组特定项目 [英] Building a set of specific projects in TFS
问题描述
有人知道如何配置TFS Build来在解决方案中构建一组项目吗?
我的解决方案有16个项目,但是对于我的一个构建定义,我希望其中一些可以被编译。
Does anybody know how can I configure TFS Build to build a set of projects in a solution instead? The solution I have, has 16 projects but for one of my build definitions I want some of them to be compiled.
推荐答案
我认为最简单的方法是创建一个新的解决方案文件。没有什么可以阻止您使用引用相同项目(或某些子集)的多个解决方案。
The easiest way in my opinion is to create a new solution file. There is nothing stopping you from having several solutions that reference the same projects (or some subset).
另一种方法是创建新配置。在解决方案资源管理器中,右键单击根节点-> Configuration Manager。除了 debug或 release之类的标准配置外,您还可以创建自己的自定义配置。对于config + platform的每种组合,您可以使用以下复选框定义将要构建的项目以及将使用的设置。
The other way is to create a new configuration. In Solution Explorer, rightclick the root node -> Configuration Manager. In addition to standard configs like "debug" or "release" you can create your own custom ones. For each combination of config + platform, you can use the checkboxes below to define which projects will be built and what settings they'll use.
无论您选择什么,都可以编辑TFSBuild.proj文件以指向所需的解决方案和/或配置。 MSDN说明: http://msdn.microsoft.com/zh-cn/library /bb399127.aspx
Whatever you choose, you'd edit your TFSBuild.proj file to point to the desired solution and/or configuration. MSDN instructions: http://msdn.microsoft.com/en-us/library/bb399127.aspx
这篇关于在TFS中构建一组特定项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!