Difference between revisions of "Mono"

From ArchWiki
Jump to: navigation, search
m (Do not use -Sy when installing packages)
Line 43: Line 43:
 
</pre>
 
</pre>
  
== Resources ==
+
== Resources & Links ==
 
[http://www.mono-project.com Official Mono website]
 
[http://www.mono-project.com Official Mono website]
 +
 +
[http://mono-project.com/Monkeyguide The Mono Handbook]
 +
 +
[http://go-mono.org/docs The API reference of Mono]
 +
 +
[http://www.ecma-international.org/publications/standards/ECMA-334.HTM ECMA-334: C# Language Specification]
 +
 +
[http://www.ecma-international.org/publications/standards/ECMA-335.HTM ECMA-335: Common Language Infrastructure (CLI)]

Revision as of 06:02, 26 July 2010


Introduction

Mono is an open source, unix implementation of the Microsoft .NET framework.

Installation

First install mono with pacman:

# pacman -S mono

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. For doing this, just add mono to your daemons array in /etc/rc.conf and it will be automatically setup for you.

DAEMONS=( ..... mono .... )

Now try this:

chmod 755 exefile.exe
./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!

Resources & Links

Official Mono website

The Mono Handbook

The API reference of Mono

ECMA-334: C# Language Specification

ECMA-335: Common Language Infrastructure (CLI)