How to add new MSBuild version to .NET Runner

Completed

Hi. My TC is out of support, therefore, we can't get the latest version.  We are currently running 2020.2.4.  When using the .NET Runner, there is a list of supported MSBuild versions.  How can we add a new version to the list?  We are starting to use 2022 and .NET 6 RC 1.  As a result, I need that version to be in the list of available MSBuild versions for the .NET Runner. Thanks -marc

1
7 comments

Yes, I'm in the same boat. Is there any way to add to this list manually?  Don't like having to wait for a release to use a newer version.  I know the situation only happens every few years, but it's frustrating when it does.

0

Hi,

Unfortunately, the updated .NET support plugin will not work on an older TeamCity version. Hence, upgrading TeamCity is required to get the benefit of the new plugin. If that would work for you, you can upgrade TeamCity even without renewing your licenses, although the incompatible server and agent license will stop working. That means the maximum number of the build configurations on the server will go down to 100. The incompatible agent licenses will also not count, meaning the maximum number of authorized agents may become as low as 3. I understand how that can be suboptimal, especially if the version you are using now is the Enterprise License server or has many agent licenses. Still, in some situations, that can be a viable option.

As a side note, MSBuild 2019 and .NET 5 are currently the latest supported versions in the current version of TeamCity. We plan to add the support of .NET 6 and MSBuild 2022 in TeamCity 2021.2.

-Anatoly 

0

We plan to add the support of .NET 6 and MSBuild 2022 in TeamCity 2021.2.

Hi Anatoly, I can't find the references to Visual Studio 2022 or latest MSBuild 17 version in the 2021.2 release notes (or in the Roadmap). Is this to be added in a subsequent version?

0

Hi! We don't consider the support of a new version of an already supported tool a fundamentally new feature, hence it's not highlighted on our roadmap. But we won't skip adding it.

0

Has Visual Studio 2022 or latest MSBuild 17 been added yet.  I am looking all over for any documentation but not finding anything.

1

Hello Aaron,

.NET runner just uses .NET CLI (https://docs.microsoft.com/en-us/dotnet/core/tools/), and the general requirement is to have .NET SDK, so you should be able to use both without any problems:

https://www.jetbrains.com/help/teamcity/net.html

Thank you,

Guilherme

0

I had to install Visual Studio 2022 on the build server, but had forgot to restart the build agent... after that it was able to see the build agents

0

Please sign in to leave a comment.