Mono on Mac: a simple installer to open your world to the alternative to Microsoft .Net
This morning I am playing a little bit with my new Mac, and I have installed Mono, in order to test the alternative framework of .Net
The first thing that I have noticed is that there are no installers for the mod_mono or for the XSP web service, therefore I’ve decided to make only a small test with C#. The installation cannot be easier: just download the Framework DMG, launch the installer and the work is done!
I’ve created a folder for the first test and, like every good developer managing a new environment for the first time, I’ve created a small “Hello World“.
- vi hello.cs
using System;
namespace helloMac{
public class helloMac {
public static void Main ( string[] args ){
Console.WriteLine(”Hello Mac World!”);
}
}
}
- mcs hello.cs (to compile the simple terminal application)
- mono hello.exe (to launch the stupid application)
Quite easy, isn’t it? Now I will dig into the differences between the original Microsoft .Net framework and Mono, in order to understand the portability of the source code I’ve written.
Another very important point will be to understand how to compile the mod_mono under darwin (mac), because the 99% of my job is web-related. I will probably do it in the next few days, depending on how much spare time I will have!
5 Comments