Is it possible to build Visual Studio solutions without having to fire up MonoDevelop?
Is it possible to build Visual Studio solutions without having to fire up MonoDevelop?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Current status (Mono 2.10, 2011): xbuild is now able to build all versions of Visual Studio / MSBuild projects, including .sln files. Simply run
xbuildjust as you would executemsbuildon Microsoft .Net Framework. You don’t need Monodevelop installed, xbuild comes with the standard Mono installation.If your build uses custom tasks, they should still work if they don’t depend on Windows executables (such as
rmdirorxcopy).When you are editing project files, use standard Windows path syntax – they will be converted by xbuild, if necessary. One important caveat to this rule is case sensitivity – don’t mix different casings of the same file name. If you have a project that does this, you can enable compatibility mode by invoking
MONO_IOMAP=case xbuild foo.sln(or tryMONO_IOMAP=all). Mono has a page describing more advanced MSBuild project porting techniques.Mono 2.0 answer (2008):
xbuild is not yet complete (it works quite well with VS2005 .csproj files, has problems with VS2008 .csproj and does not handle .sln). Mono 2.1 plans to merge the code base of mdtool (MonoDevelop command line build engine) into it, but currently mdtool is a better choice.mdtool build -f:project.slnorman mdtoolif you have MonoDevelop installed.