Open Laboratory for Technocrats

Grab the developer role, learn concepts & prepare with senior software engineers to get solutions for problems in a software job. Coding and Programming Solutions crafted for you.

Run C# in Ubuntu

How to run C# (Sharp) code in Ubuntu?

Follow the simple steps and we are ready to fly with C#.

1. Install
sudo apt-get install mono-gmcs


2. Write code in file with extension .cs (dot cs)

3. Compile the code as

gmcs <filename>.cs


4. If all went fine the run the file as :
mono <filename>.exe


That's It. We are ready to fly with C# language on Ubuntu.


Keep Learning :)

Top #3 Articles

Most Read