HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

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

Submitted by: @import:tldr-pages··
0
Viewed 0 times
httpscommandmcsmonocliinformationcompilermore

Problem

How to use the mcs command: Mono C# Compiler. More information: <https://manned.org/mcs>.

Solution

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

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 ...}}

Code Snippets

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 ...}}

Context

tldr-pages: common/mcs

Revisions (0)

No revisions yet.