# TeamCity C# script runner

DevFeed: [TeamCity C# script runner](<https://devfeed.tech/articles/teamcity-c-script-runner-23942.md>)

Original publisher: [Read original article](<https://habr.com/ru/companies/JetBrains/articles/586906/>)

Author: NikolayPyanikov (JetBrains)

Published: 2021-11-02T11:53:23Z

Content type: tutorial

Language: ru

Sources: [JetBrains RU](<https://devfeed.tech/sources/jetbrains-ru.md>)

Topics: [teamcity](<https://devfeed.tech/topics/teamcity.md>), [Script](<https://devfeed.tech/topics/script.md>), [.NET](<https://devfeed.tech/topics/net.md>), [PowerShell](<https://devfeed.tech/topics/powershell.md>), [Docker Compose](<https://devfeed.tech/topics/docker-compose.md>), [NuGet](<https://devfeed.tech/topics/nuget.md>)

Tags: [build-system](<https://devfeed.tech/tags/build-system.md>), [c-sharp](<https://devfeed.tech/tags/c-sharp.md>), [docker](<https://devfeed.tech/tags/docker.md>), [net](<https://devfeed.tech/tags/net.md>), [nuget](<https://devfeed.tech/tags/nuget.md>), [powershell](<https://devfeed.tech/tags/powershell.md>), [script](<https://devfeed.tech/tags/script.md>), [teamcity](<https://devfeed.tech/tags/teamcity.md>)

## AI overview

This tutorial explains how to use the TeamCity 2021.2 C# script runner as an alternative to PowerShell scripts for build automation. It covers running scripts from .csx files or directly in the TeamCity build-step interface, configuring script parameters, Docker execution, NuGet package sources, and the default TeamCity C# script tool.

## Source excerpt

На операционных системах Windows администраторы традиционно используют PowerShell как средство автоматизации. Хотя PowerShell имеет .NET в своей основе, синтаксис его сценариев отличается от языка C#, к которому привыкли разработчики .NET, многие из которых занимаются и настройкой сборок. Для них альтернативой сценариям PowerShell могут быть сценарии C#, синтаксис которых практически идентичен синтаксису C#. В TeamCity 2021.2 появился специальный раннер для их поддержки. Читать далее