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?
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.
gmcs -target:exe -out:program.exe *.cs
Looks like the only thing you need is the output file.
gmcs -out:bob.exe *.cs
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With