mcs

Mono C# Compiler. More information: https://manned.org/mcs.1.

mcs path/to/input_file1.cs path/to/input_file2.cs ...

mcs -out:path/to/file.exe path/to/input_file1.cs path/to/input_file2.cs ...

mcs -target:exe|winexe|library|module path/to/input_file1.cs path/to/input_file2.cs ...