[Mono-list] mscorlib.dll

Dan Lewis dihlewis@yahoo.co.uk
21 Apr 2002 10:17:09 +0100


On Sat, 2002-04-20 at 20:05, Hamazasp Asaturyan wrote:
> There is one question I have regarding mscorlib.dll. When a .NET
> assembly is built using the Microsoft compilers, it includes
> (as far as I know) a static dependency on mscorlib.dll. However,
> on Mono, this file is named corlib.dll, ommiting the "ms" prefix.
> 
> How will the Mono class loader know where to load the .NET
> System classes from? Will you also provide a file called mscorlib.dll?

Good question! Here's the answer from assembly.c in the mono library:

        if ((strcmp (name, "mscorlib") == 0)     ||
            (strcmp (name, "mscorlib.dll") == 0) ||
            (strcmp (name, "corlib.dll") == 0)   ||
            (strcmp (name, "corlib") == 0))
        {
                return g_concat_dir_and_file (MONO_ASSEMBLIES,
CORLIB_NAME);
        }

Basically corlib is aliased as mscorlib.

Dan.



_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com