From ArchWiki
Jump to: navigation, search

Mono is an open source, cross-platform, implementation of C# and the CLR that is binary compatible with Microsoft.NET.


Mono can be installed with the package mono, available in the Official Repositories.

If you need VisualBasic.Net support you have to install the VisualBasic.Net interpreter with the package mono-basic, available in the Official Repositories.

Registering Mono Applications with the Kernel

You can execute binaries by calling mono manually

mono programsname.exe

It is also possible to tell the kernel to use mono as an interpreter for all Mono binaries. To do it, just load mono kernel module and it will automatically be setup for you.

Then try this:

chmod 755 exefile.exe

Testing Mono

Make a new file; test.cs

using System;

public class Test {
 public static void Main(string[] args) {
  Console.WriteLine("Hello World!");

Then run:

$ mcs test.cs
$ mono test.exe
Hello world!


Starting to develop in Mono/C# is very easy. Just install the MonoDevelop IDE and debugger support with packages monodevelop, monodevelop-debugger-gdb, available in the Official Repositories.

If you want the API documentation browser and some testing and development tools you have to install mono-tools.

See also