Compile and run C: Unterschied zwischen den Versionen
Aus Wiki
Chris (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „=== Compile and Run C# under Linux ===“) |
Chris (Diskussion | Beiträge) (→Compile and Run C# under Linux) |
||
| Zeile 1: | Zeile 1: | ||
=== Compile and Run C# under Linux === | === Compile and Run C# under Linux === | ||
| + | |||
| + | Install package | ||
| + | |||
| + | sudo apt-get install mono-complete | ||
| + | |||
| + | Compile program | ||
| + | |||
| + | mcs -out:hello.exe hello.cs | ||
| + | mcs -out:binario.exe -r:System.Windows.Forms.dll -r:System.Drawing.dll *.cs | ||
| + | |||
| + | Run program | ||
| + | |||
| + | mono hello.exe | ||
Aktuelle Version vom 10. März 2017, 15:22 Uhr
Compile and Run C# under Linux[Bearbeiten]
Install package
sudo apt-get install mono-complete
Compile program
mcs -out:hello.exe hello.cs mcs -out:binario.exe -r:System.Windows.Forms.dll -r:System.Drawing.dll *.cs
Run program
mono hello.exe