简体   繁体   English

从TFS运行MSBuild项目

[英]Running an MSBuild project from TFS

I am have built an MSBuild project that has the main .proj file with several Targets inside, several .targets files and several .rsp response files to run this project in several ways. 我已经建立了一个MSBuild项目,该项目具有主要的.proj文件,其中包含几个Targets,几个.targets文件和几个.rsp响应文件,以多种方式运行该项目。 Such as Build, Clean/Build/Deploy, Clean/Build/Test/Deploy.. You get the idea. 例如构建,清理/构建/部署,清理/构建/测试/部署。

What I now want to do is take this MSBuild and run it in TFS scheduler after I pull the source code. 我现在想做的是在提取源代码之后,使用此MSBuild并在TFS调度程序中运行它。 So the workflow should be 1. Pull the source code in TFS 2. Run MSBuild project in the scheduler so I might set up tasks to run hourly and nightly. 因此,工作流程应为1.在TFS中提取源代码2.在调度程序中运行MSBuild项目,这样我就可以将任务设置为每小时和每晚运行。

The MSBuild will take care of Deploying to IIS, unless someone has a more efficient way of deploying after an hourly build. MSBuild将负责部署到IIS,除非有人每小时进行一次构建后拥有更有效的部署方式。

How can I accomplish this in TFS? 如何在TFS中完成此任务?

Thank you 谢谢

You can use the Team Explorer UI in Visual Studio to define a "scheduled" build definition. 您可以在Visual Studio中使用Team Explorer UI来定义“计划的”构建定义。

http://visualstudiomagazine.com/articles/2012/04/11/creating-a-build-definition-in-tfs.aspx http://visualstudiomagazine.com/articles/2012/04/11/creating-a-build-definition-in-tfs.aspx

If you want to take this to the next level, research "continuous integration" which is also a built in capability. 如果您想将其提升到一个新的水平,请研究“持续集成”,它也是一种内置功能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM