tags:

views:

62

answers:

3

I want to compile a C# app with mono that consists of multiple files (all in 1 directory). What is the command that I need?

+3  A: 

gmcs -target:exe -out:program.exe *.cs

jstedfast
+7  A: 

Use:

gmcs -out:yourapp.exe -pkg:dotnet *.cs

or

gmcs -out:yourapp.exe -pkg:dotnet35 *.cs

Those commands will reference all the assemblies referenced by default in .NET.

Gonzalo
+1  A: 

Looks like the only thing you need is the output file.

gmcs -out:bob.exe *.cs
Milhous