[Mono-list] Assembly reference

Paddy Joy mono at paddyjoy.com
Thu Mar 2 21:02:25 EST 2006


Hi,

Just a quick question about the GAC and referencing dll's.

Sometimes when I am compiling mono related software, for example in this 
case gtk-sharp, I get an error messages like this:

** (/usr/local/lib/mono/1.0/mcs.exe:9298): WARNING **: The following 
assembly referenced from /tmp/mono/trunk/gtk-sharp/vte/vte-sharp.dll 
could not be loaded:
     Assembly:   gtk-sharp    (assemblyref_index=3)
     Version:    2.4.0.0
     Public Key: 35e10195dab3c99f
The assembly was not found in the Global Assembly Cache, a path listed 
in the MONO_PATH environment variable, or in the location of the 
executing assembly (/tmp/mono/trunk/gtk-sharp/vte/).

For some reason on my machine adding gtk-sharp.dll to the gac doesn't 
fix the problem:

[root at patrickjoy gtk-sharp]# gacutil -i gtk/gtk-sharp.dll
gtk-sharp installed into the gac (/usr/local/lib/mono/gac)
[root at patrickjoy gtk-sharp]#

I need to copy the .dll into the current directory or set the MONO_PATH 
environment variable for the compilation to work.

Is there something wrong with my gac or am I doing something else wrong?

Thanks,
Paddy


More information about the Mono-list mailing list