monocontinuous-integrationnantnantcontribxbuild

Can the msbuild nantcontrib task be used with mono's xbuild?


I'm curious if it's possible to use the nantcontrib task in combination with Mono's xbuild.exe instead of it's intended msbuild.exe.

My initial experiments aren't looking too promising; the task looks for msbuild.exe, so I symlink'd xbuild.exe to msbuild.exe but the task is failing with a

External Program Failed: /usr/lib/mono/2.0/msbuild.exe (return code was 1):

Is it possible to use xbuild as a direct substitute for msbuild? If not, any input on getting a NAnt task to build a Visual Studio Solution (.sln) under mono would be appreciated!


Solution

  • Look at this similar question. Furthermore, consider using NAnt's simple <exec> element instead of NAntContrib's <msbuild> wrapper.