[Mono-list] mcs needs mscorlib!! - Why?

Miguel de Icaza miguel@ximian.com
28 Dec 2002 21:41:07 -0500


> I tried compiling a C# program using mcs after renaming the MS.Net 
> framework supplied mscorlib.dll that's on my machine.
> mcs could not complete compilation and terminated!
> Why does mcs need mscorlib.dll? Isn't it supposed to use mono's 
> corlib.dll?

Actually, MCS is a CLI application, and can be run by any implementation
of the CLI.

When you run mcs.exe from the command line, the operating system has
been configured to use the Microsoft .NET runtime and class libraries,
so that is what is chosen.

If you type `mono mcs.exe', then the Mono runtime and class libraries
will be used.