Visual Studio (sln)

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.
Search

Searching TeamCity 5.x Documentation

Table of Contents

This page contains reference information for the Visual Studio(sln) Build Runner that builds Microsoft Visual Studio 2005, 2008 and 2010 solution files.

This build runner is available since TeamCity 5.1. If you use earlier version of TeamCity, use sln2005 or sln2008 runner to build Microsoft Visual Studio 2005/2008 solution files.

General Build Runner Options

Option Description
Build runner Select Visual Studio(sln) from the drop-down list.
Solution file path Specify the path to the solution to be built relative to the Build Checkout Directory. For example:
Working directory Specify the Build Working Directory. (optional)
Visual Studio Select the Visual Studio version: 2005, 2008, 2010.
Targets Specify the Microsoft Visual Studio targets specific for the previously selected Visual Studio version. The possible options are Build, Rebuild, Clean, Publish or a combination of these targets based on your needs. Multiple targets are space-separated.
Configuration Specify the name of Microsoft Visual Studio solution configuration to build (optional).
Platform Specify the platform for the solution. You can leave this field blank, and TeamCity will obtain this information from the solution settings (optional).
Command line parameters Specify additional command line parameters to be passed to the build runner. Instead of explicitly specifying these parameters, it is recommended to define them on the 6.Properties and environment variables page.
Reduce test failure feedback time Use following option to instruct TeamCity to run some tests before others. This feature is available only if TeamCity NUnit Test Launcher is used to run NUnit tests.

NUnit Test Settings

NUnit tests settings Use this section to specify NUnit parameters
NUnit runner From the drop-down list select a version of the NUnit runner to use.
.NET Runtime From the Platform drop-down select the desired execution mode on a x64 machine. Supported values are: Auto (MSIL) (default), x86 and x64. From the Version drop-down select the desired .NET Framework version.
Run tests from Specify the .Net assemblies, where the NUnit tests to be run are stored. Multiple entries are comma-separated; usage of MSBuild wildcards is enabled.
In the following example, TeamCity will search for the tests assemblies in all project directories and run these tests.
All these wildcards are specified relative to path that contains the solution file.
Do not run tests from Specify .Net assemblies that should excluded from the list of found assemblies to test. Multiple entries are comma-separated; usage of MSBuild wildcards is enabled.
In the following example, TeamCity will omit tests specified in this directory.
All these wildcards are specified relative to path that contains the solution file.
NUnit categories include Specify NUnit categories of tests that should be run. Multiple entries are comma-separated.
NUnit categories exclude Specify NUnit categories that should be excluded from the tests to be run. Multiple entries are comma-separated.

MSTest Settings

Option Description
Run MSTests Check the box to enable running MSTest tests. If the option is not checked only NUnit test runner will be used.
Path to MSTest.exe A path to MSTest.exe file. By default Build Agent will autodetect MSTest installation. You may use %system.MSTest.8.0%, %system.MSTest.9.0% or %system.MSTest.10.0% to refer to build agent auto-detected MSTest.exe.
List assembly files A list of assemblies to run MSTests on. Will be mapped to /testcontainer:file argument.
MSTest run configuration file Specify a MSTest run configuration file to use (/runconfig:file).
MSTest metadata Enter a value for /testmetadata:file argument.
Testlist from metadata to run Every line will be translated into /testlist:line argument.
Test Names of the tests to run. This option will be translated to the series of /test: arguments
Check Add /unique commandline argument to add /unique argument to MSTest.exe
Results file Enter a value for /resultsfile:file commandline argument.
Additional commandline parameters Enter an additional commandline parameters for MSTest.exe

Please, note that tests run with MSTest are not reported on-the-fly.
For more details on configuring MSTests, please refer to the MSTest.exe Command-Line Options

Code Coverage

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

Labels:

Enter labels to add to this page:
Wait Image 
Looking for a label? Just start typing.