[Mono-list] assemblies path

Kris Luyten kris.luyten@luc.ac.be
Sat, 13 Sep 2003 13:23:24 +0200


Hi,

how can I replace:
=======
public const string GTK_ASSEMBLY    = "/usr/local/lib/gtk-sharp.dll";
public const string SYSTEM_ASSEMBLY = "/usr/local/lib/System.dll"; 
...
m_gtkAssembly = Assembly.LoadFrom(GTK_ASSEMBLY); 
m_systemAssembly = Assembly.LoadFrom(SYSTEM_ASSEMBLY);
=======

by:
======
public const string GTK_ASSEMBLY    = "gtk-sharp.dll";
public const string SYSTEM_ASSEMBLY = "System.dll"; 
...
m_gtkAssembly = Assembly.LoadFrom(GTK_ASSEMBLY); 
m_systemAssembly = Assembly.LoadFrom(SYSTEM_ASSEMBLY);
======
in my code?

The shell variable MONO_PATH points to the /usr/local/lib where
both dlls are located. When I use the second solution, I get an
exception saying the assembly gtk-sharp.dll is not found ("Unhandled
Exception: System.IO.FileNotFoundException: File 'gtk-sharp.dll' not
found.") although echo $MONO_PATH gives me:
"/usr/local/lib:/usr/local/share/dotNet/nant-0.8.2/bin:/usr/local/bin:.:"

Thanks,
Kris
-- 
Kris Luyten
Expertisecentrum Digitale Media - Limburgs Universitair Centrum
Wetenschapspark 2  3590 Diepenbeek (Belgium)
tel.: +32 (0)11 268411
email: kris.luyten@luc.ac.be
PGP-key: http://lumumba.luc.ac.be/kris/kris-pub.txt
homepage: http://lumumba.luc.ac.be/kris/