teamcity-dotnet-plugin icon indicating copy to clipboard operation
teamcity-dotnet-plugin copied to clipboard

Cannot find MSBuild path on Teamcity Linux build agent

Open Bhodges94 opened this issue 2 years ago • 6 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

Bhodges94 avatar Nov 03 '21 14:11 Bhodges94

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

Bhodges94 avatar Nov 16 '21 09:11 Bhodges94

@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 avatar Nov 16 '21 10:11 NikolayPianikov

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

Bhodges94 avatar Nov 16 '21 14:11 Bhodges94

Please use the .NET runner instead

NikolayPianikov avatar Nov 16 '21 15:11 NikolayPianikov

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)

Bhodges94 avatar Nov 16 '21 15:11 Bhodges94

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

Bhodges94 avatar Nov 16 '21 15:11 Bhodges94