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

Table of Contents

This page contains reference information about the NAnt Build Runner fields.

General Options



Build runner

Select NAnt from the drop-down list.

Path to a build file

Specify path relative to the Build Checkout Directory.

Build file content

Select the option, if you want to use a different build script than the one listed in the settings of the build file. When the option is enabled, you have to type the build script in the text area.


Specify the names of build targets defined by the build script, separated by spaces.

Working directory

Specify the path to the Build Working Directory. By default, the build working directory is set to the same path as the build checkout directory.

NAnt home

Enter a path to the NAnt.exe.


Here you can specify an absolute path to the NAnt.exe file on the agent, or a path relative to the checkout directory. Such relative path allows you to provide particular NAnt.exe file to run a build of the particular build configuration.

Target framework

Sets -targetframework: option to 'NAnt' and generates appropriate agent requirements (mono-2.0 target framework will require Mono system property, net-2.0DotNetFramework2.0 property, and so on). Selecting unsupported in TeamCity framework (sscli-1.0, netcf-1.0, netcf-2.0) won't impose any agent requirements.


This option has no effect on framework which used to run NAnt.exe. NAnt.exe will be launched as ordinary exe file if .NET framework was found, and through mono executable, if not.

Command line parameters

Specify any additional parameters for NAnt.exe


TeamCity passes automatically to NAnt all defined system properties, so you do not need to specify all of the properties here via '-D' option.

Reduce test failure feedback time

Use following option to instruct TeamCity to run some tests before others.

Run recently failed tests first

If checked, in the first place TeamCity will run tests failed in previous finished or running builds as well as tests having high failure rate (a so called blinking tests)

Code Coverage

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

See Also: