Specify the output program type

mcs

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

click the source code to copy install mcs on any operating system with command-not-found.com