views:

339

answers:

2

I've been googling and can't find any solid examples how this is done, or if it even can be done. I assume it can. Can anyone point me in the right direction?

So far I've been looking under the TFS namespace documentation on msdn. My goal is to be able to fully automate and track our builds in TFS from an intranet web application.

+2  A: 

Look at tfsbuild.exe (in the .../Common9/IDE folder of the VS install).

This references assemblies Microsoft.TeamFoundation.Build.Client and Microsoft.TeamFoundation.Build.Common which look helpful, ... and contain namespaces which are not documented with the other TFS cient assembliies, but are on MSDN here http://msdn.microsoft.com/en-us/library/cc339575.aspx

Richard
Thanks, this led me to the solution.
JimDaniel
A: 

Richard pointed me in the right direction, so I'm going to answer my own question with what I've found.

Yes, you can use the TFS SDK to create, queue, and track builds. The interfaces/classes you want are located in the Microsoft.TeamFoundation.Build.Client namespace. IBuildServer, IBuildDefinition, and IBuildDetail are particularly useful.

Here is an an example to queue a build at tfsexamples.com:

Queue build using the TFS API

JimDaniel