Wondering how to write C#(.Net) code in Linux, here we go !

Let’s first discuss what softwares must be installed in Ubuntu(Linux) before we get our hands dirty.

We need to add Mono GPG signing key in Ubuntu with the below command

Next, we need to add package repository in Ubuntu command line

Now, its time to update the mono packages

The below procedure is required to enable installing mod_mono in Ubuntu 13.10 or above

Followed by this, we need to install the below mono packages

We are all set, its time to get get our hands dirty !!!

In your favorite text editor type the below code

Screen Shot 2015-10-31 at 12.10.21 PM

Let’s compile our first C# program in Ubuntu

Execute the program now

You should see the below output

Screen Shot 2015-10-31 at 12.17.33 PM


Congrats, you can now start rocking in Mono C# World !!! 

Share Now


More Posts By Jegan

Related Post

Leave us a reply