Is it possible to build MSBuild files (visual stud

2019-01-13 11:54发布

Is it possible to build Visual Studio solutions without having to fire up MonoDevelop?

标签: msbuild mono
4条回答
老娘就宠你
2楼-- · 2019-01-13 12:28

xbuild now supports solutions and projects, both VS2005 and VS2008.

查看更多
我想做一个坏孩纸
3楼-- · 2019-01-13 12:33

Current status (Mono 2.10, 2011): xbuild is now able to build all versions of Visual Studio / MSBuild projects, including .sln files. Simply run xbuild just as you would execute msbuild on 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 rmdir or xcopy).

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 try MONO_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.sln or man mdtool if you have MonoDevelop installed.

查看更多
【Aperson】
4楼-- · 2019-01-13 12:45

I think you are looking for xbuild: http://www.mono-project.com/Microsoft.Build

查看更多
ら.Afraid
5楼-- · 2019-01-13 12:47

for now as per August 2017 we can use

msbuild

command as xbuild is depreciated.

查看更多
登录 后发表回答