TFS 2012自动构建依赖于当前项目的项目 [英] TFS 2012 automatically build projects that depend on current one

查看:314
本文介绍了TFS 2012自动构建依赖于当前项目的项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好的,所以我不得不承认,我是所有这一切构建自动化的东西的新。但基本上我想知道是否有一种方法来连接我的构建定义,如果我有一个像这样的情况




  • ProjectA生成ComponentA.dll

  • ProjectB引用ComponentA.dll并产生ComponentB.dll

  • ProjectC引用ComponentB.dll



然后,当我对ProjectA进行更改并检查它们时,构建过程将自动构建ProjectB,最后是ProjectC,并报告任何错误。 p>

那么有没有办法做到这一点,或者这种类型的东西在某种程度上完全不同地处理?

解决方案

您所指的过程是被称为



TFS非常棒:只需设置构建定义 触发 持续集成并设置 工作区 工作文件夹到三个项目的父文件夹。这样,其中一个项目的任何更改都将触发构建。



MSDN:连续构建和部署


Ok so I have to admit, I'm very new to all of this build automation stuff. But basically what I'm wondering is if there is a way to wire up my build definitions in such a way that if I have a case like so

  • ProjectA produces ComponentA.dll
  • ProjectB references ComponentA.dll and produces ComponentB.dll
  • ProjectC references ComponentB.dll

then when I make changes to ProjectA and check them in, the build process would automatically also build ProjectB, and finally ProjectC, and report any errors.

So is there a way to accomplish this, or should this type of thing be handled somehow completely differently in the first place?

解决方案

The process you are referring to is the crux of the practice known as Continuous Integration.

TFS does it very well: simply set your build definition Trigger to Continuous Integration and set the Workspace working folder to the parent folder of the three projects. This way, any change in one of the projects will trigger a build.

MSDN: Build and Deploy Continuously

这篇关于TFS 2012自动构建依赖于当前项目的项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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