在TFS解决方案/项目名称变量构建2010 [英] Solution/Project name variable in TFS Build 2010

查看:178
本文介绍了在TFS解决方案/项目名称变量构建2010的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在2010年TFS创建一个新的构建定义我们specifiy一个项目或解决方案来构建(下 - 在定义的'过程'节'必填>项目,以建立栏目

When creating a new build definition in TFS 2010 we specifiy a project or solution to build (Under the 'Required -> Items to Build' section in the 'Process' section of the definition.

有没有什么办法让该解决方案的名称持有建在工作流范围是什么?即是有可里面,这个信息的变量,我可以在工作流程中传递到一个自定义的code活性别处?

Is there any way to get hold of the name of the solution being built in the Workflow scope? I.e. is the there a variable available with this information inside that I can pass into a custom code activity elsewhere within the work flow?

推荐答案

如果您打开构建工作流程和隧道分成编译和测试,你会看到每个项目的循环范围,显示BuildSettings的工作流程变量赋值。在开箱工作流程ProjectsToBuild为serverBuildProjectItem。有该转换该serverItem到包含该凸出文件的本地路径的子序列中的一个任务。

If you open the build workflow and tunnel down into Compile and Test, you'll see a For Each Project loop scope that shows the workflow variable assignment of BuildSettings.ProjectsToBuild as serverBuildProjectItem in an out of the box workflow. There's a task within the sub-sequence that translates that serverItem to a local path containing the proj file.

这篇关于在TFS解决方案/项目名称变量构建2010的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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