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?
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