TeamCity 8.0 Help

MSBuild

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

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:

vs-addin\addin\addin.sln

Working directory

Specify the path to the Build Working Directory.

MSBuild version

Select the MSBuild version: .NET Framework or Mono xbuild. Since TeamCity 8.1, Microsoft Build Tools 2013 is also supported.

MSBuild ToolsVersion

Specify here the version of tools that will be used to compile (equivalent to the /toolsversion: commandline argument).

Run platform

From the drop-down list select the desired execution mode on a x64 machine.

Targets

A target is an arbitrary script for your project purposes. Enter targets separated by spaces.

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.

Implementation notes

MSBuild runner generates an MSBuild script that includes user's script. This script is used to add TeamCity provided msbuild tasks. Your MSBuild script will be included with the <Import> task. If you specified a Visual Studio solution file, it will be called from the <MSBuild> task. To disable it, set teamcity.msbuild.generateWrappingScript to false.

Last modified: 20 April 2023