[Mono-devel-list] locating dlls in the compiler

Miguel de Icaza miguel at ximian.com
Wed May 5 13:09:22 EDT 2004


> How do I find where /usr/lib/mono/1.0 is?
> I mean mcs.exe looks for directory it is lunched for and assumes that
> there are symlinks to framework assemblies. Now this is no option for me
> in my compiler. Under Microsoft runtime I can simply check for CodeBase
> of mscorlib or System.dll, that are already loaded. However under mono it
> is /usr/lib and gac location (with pubtoken etc). Neither is good for me.

As you have noticed the new GAC setup has some rough edges still.  There
has been some discussion as to what is the proper way of solving this

In the next couple of days, we should design a solution for the various
new problems we have.

> Now 1) will be just an option, since it can cause problems when multiple
> libraries are installed. 2) doesn't seem any good. 3) will break binary
> distribution and is ugly. 4) ... I don't even want to think about it.
> Maybe CodeBase of System.dll could be used to return proper directory, 
> it works somehow under MS.

This sounds like an option, does this point to the "public" directory
where the assembly lives, or it returns the path from the GAC?

I wonder if Microsoft is using the PATH to locate extra assemblies, and
in that case, what is the right Unixism to apply here.


More information about the Mono-devel-list mailing list