Skip to end of metadata
Go to start of metadata
You are viewing documentation of TeamCity 6.x, which is not the most recent released version of TeamCity. Please refer to the listing to choose another version.

Searching TeamCity 6.0.x Documentation

Table of Contents

This page contains reference information for the MSBuild Build Runner fields.

Before setting up the build configuration to use MSBuild as the build runner, make sure you are using an XML build project file with the MSBuild runner. To build a Microsoft Visual Studio 2005, 2008 or 2010 solution file please use the Visual Studio (sln) build runner).

General Build Runner Options

Option Description
Build File Path Specify the path to the solution to be built, relative to the Build Checkout Directory. For example:
Working Directory Specify the path to the build working directory.
MSBuild version Select the framework you want to run - either .NET Framework (2.0, 3.5 or 4.0) or Mono xbuild.
MSBuild ToolsVersion Specify here the version of tools that will be used to compile (equivalent to /toolsversion: commandline argument).
MSBuild supports compilation to older versions, thus you may set MSBuild version as 4.0 with MSBuild ToolsVersion set to 2.0 to produce .NET 2.0 assemblies while running MSBuild from .NET Framework 4.0. For more information refer to
Run platform From the drop-down list select the desired execution mode on a x64 machine.
Targets Enter targets separated by spaces. A target is an arbitrary script for your project purposes.
Command line parameters Specify any additional parameters for msbuild.exe
Reduce test failure feedback time Use the following option to instruct TeamCity to run some tests before others.

Code Coverage

To learn about configuring code coverage options, please refer to the Configuring .NET Code Coverage page.

XML Report Processing

Select a report type to import. You only need to import tests reports, if the automatic tests reporting fails to detect your tests.

Option Description
Report type Select report format from a drop-down list. The following report formats are supported: PMD, Surefire, Ant JUnit, NUnit, Checkstyle and FindBugs.

See also:


msbuild msbuild Delete
build build Delete
runner runner Delete
Enter labels to add to this page:
Wait Image 
Looking for a label? Just start typing.
  1. Nov 13, 2010

    A note on how to make MSBuild run from command line runner report output to TeamCity.