TFS构建自动化 [英] TFS Build automation

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

问题描述

我让TFS2010构建一个项目解决方案,它是一台复印机。构建成功但不执行任何操作,即。不会复制。

I have TFS2010 building a project solution, which is a copier. The build is succesful but does nothing, ie. doesn't copy.

我如何获取触发的版本来复制文件?

How would I get the triggered build to copy the file?

谢谢

我有TFS 2010和VS专业版2010

I have TFS 2010 and VS professonal 2010

编辑

更新

复印机是正在构建的项目。我将start copier.exe添加到了后期构建中,当我手动构建它时,它可以工作,如进入构建下拉菜单并单击build copier。但是当我放弃TFS构建时,它不会启动复印机。

Copier is the project being built. I added start copier.exe to the post build and it works when I build it manually, as in going to the build drop down menu and clicking build copier. But when I shedule a TFS build it doesn't start copier.

推荐答案

如果您需要构建过程来调用程序,则可以需要编辑TFS生成过程模板。

If you need the build process to invoke a program you need to edit the TFS Build Process Template.

网络上有很多资源,一个很好的资源是 Ewald Hofman 。您也可以在Wrox的 TFS 2010一书中找到详细信息/ a>。

There are a number of resources on the net for this, a good one is by Ewald Hofman. You can also find details in the TFS 2010 book by Wrox.

一旦您熟悉了流程模板,您将需要在添加新的 InvokeProcess 活动之后构建活动已经完成。

Once you are familiar with the Process Template you will need to add an InvokeProcess activity after the activities for the build has completed.

此外,考虑添加 If 活动并设置参数,以便您可以控制哪个版本执行此操作,而哪个不执行此操作-例如,您的CI版本是否需要此步骤?

Also, consider adding a If activity and setting an argument so you can control which builds do this and which don't - for example, do your CI builds need this step?

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

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