Is it possible to build Visual Studio solutions without having to fire up MonoDevelop?
相关问题
- Visual Studio 2019 - error MSB8020: The build tool
- Monodevelop: `Waiting for debugger`
- Is It possible to build asp.net core project using
- Delete files older 6 months
- Unity3D - Build Failed because of “[Unity] ERROR:
相关文章
- Visual Studio Code, MAC OS X, OmniSharp server is
- Bundling the Windows Mono runtime with an applicat
- Build errors of missing packages in Visual Studio
- Copy different file to output directory for releas
- How to use native C++ libraries in Mono for Androi
- Why doesn't AutogenerateBindingRedirects work
- MSBuild - How to build multiple files AND projects
- Visual Studio Solution — Any way to create a “spec
xbuild now supports solutions and projects, both VS2005 and VS2008.
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 executemsbuild
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
orxcopy
).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.sln
orman mdtool
if you have MonoDevelop installed.I think you are looking for xbuild: http://www.mono-project.com/Microsoft.Build
for now as per August 2017 we can use
msbuild
command as xbuild is depreciated.