1
votes

I have been using a msbuild file that builds and packages my solution to 'Client' and 'Server'. So far I have been using the below cmd to build from VS cmd prompt:

   msbuild.exe MyBuildFile.proj /t:Build

(I have a target called 'Build' which will kick start build and do the rest).

Now, my team wants to queue builds in TFS build server. I read about TFSBuild.proj file. Should I once again write all the scripts in to TFSBuild.Proj or is there a way by which I can call my 'MyBuildFile.proj /t:Build' from TFSBuild.Proj.

Any help is appreciated.

Thanks, Mani

1
Are you using TFS 2010 or 2008?Nick Nieslanik

1 Answers

0
votes

You can just include your existing MyBuildFile.proj in a TFS 2010 build:

  1. Create a new build definition
  2. In the Process page, choose the UpgradeTemplate.xaml workflow
  3. Select the directory of your checked-in MSBuild.proj file of choice (checked-in under the name TFSBuild.proj)

There might be some subtle differences between your development system and the build server that you need to take care of, but above steps should take you 85%. Enable Diagnostic level build information verbosity (also to be set on the Process page) to troubleshoot loose ends.