Visual Studio Build Runner on Mac

Answered

I am trying to run a sln package on TeamCity on a Mac. Does Visual Studio need to be installed on the Mac itself in order to fulfill the build runner compatibility requirement? What steps do we need to take in order to make that happen?

7 comments

Hi Calvin,

(copied from email support ticket)

The Visual Studio (sln) build runner requires Microsoft Visual Studio installed on the build agent. So Mac build agent cannot be used to run these builds. You can use MSBuild with Mono to build your application.

0

I have installed mono and when running xbuild /package.sln, it builds successfully. However, how do I configure that to run in TeamCity?

0

You can select Mono xbuild in "MSBuild version" field in MSBuild runner. Mono platform should be installed on agent and automatically detected, see the section.

0

It seems that everything should be working correctly, but TeamCity is not automatically detecting the compatible runner. 

If we are running command line and gradle tasks on this agent, do we need an additional agent to run the msbuild task?

0

It seems that Mono installation has not been detected automatically. Please set make the properties (see the full list here) available for build runners by setting them manually in the agent configuration file.

0

Can this be done on a mac, installing Visual Studio for Mac? I understand that visual studio for Mac uses the underlying msbuild build system...

https://docs.microsoft.com/en-us/visualstudio/mac/compiling-and-building

 

 

0

I'm afraid not. The Visual Studio runner uses some tools that aren't provided in the Mac version of Visual Studio.

0

Please sign in to leave a comment.