Skip to content

Instantly share code, notes, and snippets.

@darkofabijan
Last active August 29, 2015 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save darkofabijan/9a5adb4e7f15d16f1fca to your computer and use it in GitHub Desktop.
Save darkofabijan/9a5adb4e7f15d16f1fca to your computer and use it in GitHub Desktop.
C# instalation

Add following lines to your build commands:

sudo apt-add-repository -y ppa:ermshiperete/monodevelop
sudo apt-get install -y monodevelop

To test if compiler is working I created following file (test.cs):

using System;  
  
namespace MonoTest  
{  
   class Program  
   {  
     static void Main(string[] args)  
      {  
          Console.WriteLine("Hai to Mono");  
          Console.Read();  
      }  
   }  
}

And compile and executed it with:

mcs test.cs
mono test.exe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment