This project is read-only.


Ever wanted to have custom messages on the build report in TFS?
There is a new task in TFS 2008, BuildStep, that allows you to display a custom message in the build report, and it gives you some control over what is displayed when the build is running, and when it succeeds.


Use the BuildStep task to display custom messages on the build report. See for full documentation on this task.

The recipe consists of two steps: first, inside a <Target>, you define a BuildStep task and give it an ID (which you’ll use in the second BuildStep task).

The next part is to define another BuildStep task which “closes” the first one you created – put anything between these two tasks that you want to report on. While whatever you put between these tasks is running, you’ll see the first message in the build report, then the message of the second BuildStep task when it succeeds.



     <BuildStep TeamFoundationServerUrl="$(TeamFoundationServerUrl)"
                 Message="Some long running task has started...">
       <Output TaskParameter="Id" PropertyName="MyMessageID" />
       <SomeLongRunningTask />

     <BuildStep TeamFoundationServerUrl="$(TeamFoundationServerUrl)"
                Message="Long running task has succeeded!"
                Status="Succeeded" />


You can also create BuildStep tasks for the statuses "Failed" and "Stopped".

Last edited Nov 2, 2010 at 7:17 PM by wbarthol, version 2


No comments yet.