[Mono-list] assemblies path
Peter Williams
peter@newton.cx
Sat, 13 Sep 2003 13:39:03 -0400
On Sat, 2003-09-13 at 07:23, Kris Luyten wrote:
> 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);
> =======
I believe Assembly.LoadFrom always expects a filename, so gtk-sharp.dll
is treated as ./gtk-sharp.dll and nothing else. Use Assembly.Load ().
Peter
--
Peter Williams peter@newton.cx
"[Ninjas] are cool; and by cool, I mean totally sweet."
-- REAL Ultimate Power