JetBrains / teamcity-dotnet-plugin

TeamCity plugin for .NET projects

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How can I install automatically the .NET Frameworks on an OnPrem Build Agent?

klacol opened this issue · comments

Hi, we use TC for many years now. In the last months I learned to know the Github Actions Workflows. They can prepare their build agents via script. So I do not need to prepare any software manually on my agent. The Github Actions Workflow installs automatically the needed software for the builds.

How could we achieve this with TC? I do not want to go remote on every agent for every framework/software that I need; how could this preperation be automated?

Thanks for any tips.

@klacol hi. You can use Microsoft docker images (search for ".NET SDK" or ".NET Framework SDK" in docker hub) and run builds and tests in these containers via .NET runner. Alternatively, you can run TeamCity agents in a container https://hub.docker.com/r/jetbrains/teamcity-agent. These images already contain the .NET Framework and the .NET SDK.
You can also use the C# script runner and scripts like this to install the necessary tools and even run builds.

Thanks, I will give it a try.