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:
- Install mono-complete package:
- Compile the hello.cs script, in order to generate the hello.exe file
- Execute the hello.exe file with the mono command
Comentarios
Publicar un comentario