Pass value from MSBuild Task to TFS Build Workflow

☆樱花仙子☆ 提交于 2019-12-12 15:14:57

问题


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).

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. A TFS 2010 Build workflow runs on a build server
  2. The build server has custom target files which inject into the MSBuild Pipeline and do some processing
  3. The results from 2. above need to go back into the TFS Build Workflow.

Would appreciate some help into this problem please.


回答1:


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.



来源:https://stackoverflow.com/questions/15769175/pass-value-from-msbuild-task-to-tfs-build-workflow

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!