TeamCity
 
You are viewing the documentation for an earlier version of TeamCity.

.NET CLI (dotnet)

Last modified: 20 April 2023

TeamCity comes with built-in support of .NET CLI toolchain providing .NET CLI (dotnet) build steps, CLI detection on the build agents, and auto-discovery of build steps in your repository.

This page provides details on configuring the .NET CLI (dotnet) runner. Also see the related blog post.

Docker Settings



Since TeamCity 2018.1 the .NET CLI build step can be run in a specified Docker container.

Code Coverage



JetBrains dotCover is supported as a coverage tool for the msbuild, test, and vstest commands.

Authentication in private NuGet Feeds



Since 2018.2 TeamCity provides credentials plugin working with NuGet feed v3 API in .NET CLI 2.1.500+. (NuGet feed v1/v2 are not supported).

It allows using authentication in build-in NuGet feeds or feeds specified in the NuGet feed credentials build features.

Parameters Reported by Agent



When starting, the build agent reports the following parameters: