JetBrains / teamcity-dotnet-plugin

TeamCity plugin for .NET projects

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot find MSBuild path on Teamcity Linux build agent

Bhodges94 opened this issue · comments

although my DOTNET_HOME was set correctly (/usr/share/dotnet) the documentation shows the detection algorithm for dotnet but why not also for MSBuild?
https://www.jetbrains.com/help/teamcity/msbuild.html
Mine just can't find the MSBuild path at all
Unmet requirements:
MSBuildTools16.0_x64_Path exists

Tried setting env variable in bashrc, buildagent.properties, within the build configuration parameters, I've tried moving the MSBuild folder into /usr/share/dotnet but it just can't find it.
Setup:
ubuntu 20.04 docker container.
TeamCity Enterprise 2020.2 (build 85487).
Microsoft (R) Build Engine version 16.11.1+3e40a09f8 for .NET.
Also have Microsoft (R) Build Engine version 16.6.0 for Mono

@mkjetbrains can anyone help with this? Or are these issues not monitored anymore?

@Bhodges94 @Bhodges94 MSBuildTools16.0_x64 is a windows version of MSBuild. It is a part of Visual Studio or Visual Studio build tools. To run MSBuild tasks on Linux, please choose the cross-platform version of MSBuild in a build step, in this case, .NET SDK is required.

@NikolayPianikov , thanks for your reply. I seem to missing this option?
cross-platform-missing

Please use the .NET runner instead

yeah I noticed it mentioned something about the .net runner, would it be the one below? ".NET Process Runner"
image

but then if i choose that option it doesn't have MSBuild version anymore.
image

which Teamcity version has this MSBuild cross-platform version? I'm currently on 2020.2 (build 85487)

don't worry, i think i've found it
image