The TeamCity .NET plugin provides support for .NET CLI in TeamCity.
It simplifies building Windows and cross-platform applications that use .NET frameworks and libraries.
The plugin provides the following features for .NET project building:
- .NET CLI (dotnet) build runner
- .NET CLI & .NET Core SDK detection on TeamCity build agents
- Auto-discovery of build steps
- On-the-fly test reporting
- Supports code coverage tools
- Cleanup of NuGet caches to meet the agent free space requirements
Note: This plugin is bundled in TeamCity 2017.2+
.NET CLI toolkit
To use the
dotnet build runner, install .NET CLI and add the .NET CLI tools path to the
PATH environment variable.
You can also configure the
DOTNET_HOME environment variable for your TeamCity build agent user, for instance:
Reported agent configuration parameters
During initialization this plugin reports the following agent configuration parameters:
|DotNetCLI||The version of found .NET CLI (dotnet) app|
|DotNetCLI_Path||The path to the found .NET CLI (dotnet) app|
|DotNetCoreSDKx.x_Path||The path to the found .NET Core SDK|
Tests might not be reported correctly for .NET Core xunit test projects when logging verbosity levels is
quiet because of issue.
We appreciate all kinds of feedback, so please feel free to send a PR or file an issue in the TeamCity tracker.