[Mono-list] Mono C# compiler command line options.

Miguel de Icaza miguel@ximian.com
11 Jul 2002 22:04:26 -0400


Hello everyone,

   The Mono C# compiler on CVS now supports the same command line
arguments as the Microsoft C# compiler does.  This means that now you
can make your makefiles use the CSC command line options, and just do
stuff like:

---- Makefile ----
CSC=csc
a.exe: a.cs
	$(CSC) /r:mylib.dll /nologo /lib:somedir /define:XXX a.cs

And if you want to use MCS to compile, do:

make CSC=mcs

And things should just work.

We still support the old command line options to avoid rewriting
makefiles.  Here is how the command line handling works:

	If an argument begins with a dash, then the Unix command
	line handling is invoked.  If this is not recognized as
	an option, then we try it with the CSC option handler.

	This is so things like "mcs -nologo" work (because CSC
	also allows options that begin with a dash).

	If the argument begins with a slash, then we try to process
	it as a CSC option, if it is not an option, we assume it is
	a filename (for Unix purposes), and process that as a filename.

miguel.

-- 
Miguel de Icaza <miguel@ximian.com>