The recently released TeamCity 2021.2 introduces a new build runner — C# Script. We’ve created it for users who want to automate their routine CI/CD operations using the familiar syntax of C# and all its scripting conveniences.
TL;DR: The runner’s main advantages are:- It’s tightly integrated with TeamCity and supports all its handy features like a detailed build log and parameterized build properties.- It’s platform-independent and can run inside a Docker container.- It can automatically restore NuGet packages mentioned in your scripts.- It can access public, private, and TeamCity-internal