将值从MSBuild任务传递到TFS生成工作流 [英] Pass value from MSBuild Task to TFS Build Workflow

查看:86
本文介绍了将值从MSBuild任务传递到TFS生成工作流的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有许多将TFS 2010构建工作流中的属性值传递到MSBuild中的示例和方法,但是我需要相反.

There are numerous examples and ways on passing a property value from TFS 2010 Build Workflow into MSBuild however I need to do the reverse.

基本上在构建框上已写入自定义目标文件,以对在该框上运行的所有构建进行一些处理.这些目标文件具有自定义任务,其中一些任务暴露返回值(或输出参数).

Basically on the build boxes custom target files have been written to do some processing on all the builds that run on the boxes. These target files have custom tasks in them some of which expose return values (or output parameters).

如果可能的话,我希望能够从构建工作流(TFS 2010)中读取这些输出参数的值.所以基本上

I would like to be able to read the values of these output parameters from within the build workflow (TFS 2010) if possible. So basically

  1. TFS 2010构建工作流在构建服务器上运行
  2. 构建服务器具有自定义目标文件,这些文件将注入到MSBuild管道中并进行一些处理
  3. 上面2.中的结果需要返回到TFS Build Workflow.

请在此问题上为您提供帮助.

Would appreciate some help into this problem please.

推荐答案

一种方法是将输出数据写入易于从TFS工作流访问的位置.如文件.然后,您需要自定义TFS工作流,以便在MSBuild活动之后从文件中读取.

One way would be to write the output data to a location that is easily accessible from TFS Workflow. Such as a file. Then you'd need to customize the TFS Workflow a bit to read in from the file following the MSBuild activity.

这篇关于将值从MSBuild任务传递到TFS生成工作流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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