Austin Agile DevOps

DevOps in the Cloud
posts - 70 , comments - 7 , trackbacks - 0

Turn off Team Build 2010 Scrapping of Project Output to Binaries Directory (OutDir)

The objective of this poat is to simply show how to turn off (disable) TFS Team Build 2010's use of the MSBuild OutDir property to "scrap" project output from the location specified in your project .csproj files to the Team Build BinariesDirectory location.

I have found the existing blog postings to be rather confusing on this. So, I will break out distinct problems and show a solution for each.

Problem: I don't want Team Build to change project output processing

Answer: Change the OutDir property value in the Run MS Build for Project activity to null.

  1. Open the build process template file for the build definition
  2. Navigate down to within the compile activities
  3. Select "Run MS Build for Project"
  4. Open the Properties dialog
  5. Blank out the value for the OutDir property
  6. Check-in the build process template file

NOTE: you can comment this in the expression editor as follows: String.Format("{0}", String.Empty,"COMMENT - text"). As far as I have been able to determine, there is no way to include legitimate comment text in the expression editor. Please let me know if you know how :).

Open attachment below to see larger image

For more information on working with the build process template files see Ewald Hoffman's post on Customize Team Build 2010.

Problem: I need to publish build output my own way

Answer: Use the InvokeProcess build activity.

Several blogs have suggested that you can modify your project .csproj files to handle this. Ruiz Yi has a nice posting that is very helpful for this approach. However, if you have many solutions with many projects, then having to customize the project files starts to look very unattractive.

To use the InvokeProcess build activity to publish or archive off build output and/or data files, refer to Ewald Hoffman's Customize Team Build 2010 - Part 3.

Cheers!

Print | posted on Friday, July 30, 2010 1:57 PM | Filed Under [ Agile SCM Talk Blog ]

Feedback

No comments posted yet.
Post A Comment
Title:
Name:
Email:
Comment:
Verification:
 

Powered by: