1 Replies Last post: Oct 14, 2014 11:28 PM by Mikael Chudinov  
Nathan Gloyn Newbie 1 posts since
Sep 7, 2013
Currently Being Moderated

Sep 7, 2013 1:26 AM

Unable to find MSBuild on Linux with Mono installed

I'm trying to set up Team City on Ubuntu (13.04) and have run into a problem trying to run a build.


I have configured the build to user MSBuild and use Mono xbuild 4.0 and when I start the build the agent fails with the message:


Unable to find MSBuild at /usr/local/lib/mono/4.0/xbuild.exe, please check MSBuild environment variable to target to Microsoft .NET Framework 2.0/3.5/4.0 or Mono installation directory


I have verified that xbuild is at /usr/local/lib/mono/4.0/xbuild.exe.


Any idea why the agent will not run?

Mikael Chudinov Newbie 1 posts since
Oct 14, 2014
Currently Being Moderated
Oct 14, 2014 11:28 PM in response to: Nathan Gloyn
Re: Unable to find MSBuild on Linux with Mono installed

xbuild.exe is not shipped with mono 4.0, so  there is no xbuild under /usr/local/lib/mono/4.0/ folder.

There is xbuild.exe with mono 3.5 and with mono 4.5

But TeamCity does not know it.


Simple solution: use command line builder to run xbuild with mono 4.0 and 4.5

More Like This

  • Retrieving data ...