Linux
Mono on Linux and feeling good
If you haven’t heard about Mono on Linux then it is time to fill this gap. Mono is an open source platform that implements CLI specification and enables building and running C# applications on Linux, OS X, Windows which is fun. This is the official description from the site.
Mono, the open source development platform based on the .NET framework, allows developers to build cross-platform applications with improved developer productivity. Mono’s .NET implementation is based on the ECMA standards for C# and the Common Language Infrastructure.
Starting fast
In order to start playing with Mono fast there is a need to install three things.
Linux
- You need to have Linux (Ubuntu) installed on you PC (vm). It is possible to work with Mono on Windows too.
Mono
- You need to install mono on you system with these commands in the terminal
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list sudo apt-get update sudo apt-get install Mono-Complete
- If you need more visual explanation follow this YouTube tutorial.
MonoDevelop
- Now to be able to code and build C# projects there is a need to install cross-platform IDE for C#, F# and more, such as MonoDevelop.
sudo apt-get install monodevelop
- After monodevelop package installation simply type in terminal ‘monodevelop‘ for IDE to startup.
- To learn to use this IDE you may refer to this Xamarin Studio documentation.
Mono, mono?
To create a simple project when IDE is up
- Click on create New project under Solutions section
- When new from will open select .NET under Other section
- Then select Console Project and click Next
- In the Configure your new project form name your project
- Set project location
- Click Create
- That’s it you are all set up
Wrapping-up
- Mono is good for you if you feel lonely without C# on Linux
- Mono is open source and as such contribution is more than valued
- Mono is great but it seems Stereo must have been even better
Reference: | Mono on Linux and feeling good from our SCG partner Andrei Cheremskoy at the GetToCode.com blog. |