O'Reilly logo

Inside the Microsoft® Build Engine: Using MSBuild and Team Foundation Build by William Bartholomew, Sayed Ibrahim Hashimi

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Team Build API

Team Build provides a rich application programming interface (API) that allows you to query and manage the build server, build agents, build definitions, and individual builds. There are a number of scenarios where the API is useful:

  • Automating administration tasks

  • Integrating Team Build into other processes

  • Extending the build process beyond MSBuild

Creating a Project

The first step is to create a project that references the required assemblies. In this example, we’ll create a new Console Application called TeamBuildAPI as shown in Figure 11-3:

New Project dialog box

Figure 11-3. New Project dialog box

Using the Team Build API requires at least three references: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required