[Mono-list] Compiling C# code with Mono.
Miguel de Icaza
03 Jan 2003 19:14:10 -0500
On Fri, 2003-01-03 at 05:19, Rafael Teixeira wrote:
> From: "George Couch" <firstname.lastname@example.org>
> > How are large C# projects, containing multiple files, compiled? Are
> > there "Makefiles" for C#? I'm trying to figure out how to compile C#
> > code which contains multple files.
> Each group of files that should be compiled to a single exe or dll is just
> have their names enumerated in command line to the compiler:
> mcs x.cs y.cs z.cs
> that would compile a x.exe file. For aditional parameters consult the man
> page for mcs.
I wanted to add: you can compile "libraries" like this:
mcs /target:library a.cs b.cs c.cs /out:mylibrary.dll
Then you link to it like this:
mcs main.cs /r:mylibrary.dll