Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

mono: Building a .Net solution at the command line on Linux

Tags:

.net

mono

ubuntu

I have recently installed mono on my Linux box, in order to be able to do some .Net programming in a more familiar environment.

I am trying to build a solution from the command line without having to fireup the heavy monodevelop. On windows this can be done using Msbuild.exe. I cannot seem to find that file with the mono tools.

The nearest is mdtool which (if I understand correctly) is used to build individual projects instead of an entire solution).

How may I build an entire solution from the command line on Linux using mono?

BTW, I am running Ubuntu 10.0.4

like image 622
Homunculus Reticulli Avatar asked Jul 03 '12 08:07

Homunculus Reticulli


People also ask

Can you build .NET framework on Linux?

. NET is an open source software framework for building cross-platform applications on Linux, Windows, and macOS.

What is mono command?

The mono command executes a compiled Mono program in the virtual machine. mono uses a just-in-time compiler (JIT) to translate the compiled CIL bytecode to machine code for execution. The Hello.exe program can be run with mono Hello.exe.


1 Answers

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.

https://stackoverflow.com/a/56113/73381 (possible duplicate)

like image 53
Rob P. Avatar answered Sep 27 '22 20:09

Rob P.