Compile and Execute C# on Ubuntu Linux

To explain how to compile and execute C# code on Ubuntu, we will  create a hello world method for adding two numbers and show the result after the hello world message.

  • We create the file hello.cs with the following content:

 
 

  1.  Install mono-complete package:

     


  2. Compile the hello.cs script, in order to generate the hello.exe file


  3. Execute the hello.exe file with the mono command

Comentarios

Entradas populares de este blog

Como calcular permisos de umask

Configuración de un DNS IPv6 local en Linux con Bind

Permisos Unix: Los bits SUID, SGID y sticky