On Fri, 2003-01-03 at 05:19, Rafael Teixeira wrote:
> From: "George Couch" <[EMAIL PROTECTED]>
> >     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

Miguel

_______________________________________________
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to