mcs

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

Install

All systems
curl cmd.cat/mcs.sh
Debian Debian
apt-get install mono-mcs
Ubuntu
apt-get install mono-mcs
Arch Arch Linux
pacman -S mono-mcs
image/svg+xml Kali Linux
apt-get install mono-mcs
Fedora
dnf install mono-mcs
Windows (WSL2)
sudo apt-get update sudo apt-get install mono-mcs
OS X
brew install mono-mcs
Raspbian
apt-get install mono-mcs

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

  • Compile the specified files:
    mcs path/to/input_file1.cs path/to/input_file2.cs ...
  • Specify the output program name:
    mcs -out:path/to/file.exe path/to/input_file1.cs path/to/input_file2.cs ...
  • Specify the output program type:
    mcs -target:exe|winexe|library|module path/to/input_file1.cs path/to/input_file2.cs ...

© tl;dr; authors and contributors