mail-archives/gtk-sharp-list/2004-August/004737.html

87 строки
3.2 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Gtk-sharp-list] location of assemblies
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:John%20Luke%20%3Cjohn.luke%40gmail.com%3E">
<META NAME="robots" CONTENT="index,nofollow">
<LINK REL="Previous" HREF="004727.html">
<LINK REL="Next" HREF="004728.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Gtk-sharp-list] location of assemblies
</H1>
<B>John Luke
</B>
<A HREF="mailto:John%20Luke%20%3Cjohn.luke%40gmail.com%3E"
TITLE="[Gtk-sharp-list] location of assemblies">John Luke &lt;john.luke@gmail.com&gt;
</A><BR>
<I>Thu, 19 Aug 2004 20:16:07 -0400</I>
<P><UL>
<LI> Previous message: <A HREF="004727.html">[Gtk-sharp-list] location of assemblies
</A></li>
<LI> Next message: <A HREF="004728.html">[Gtk-sharp-list] compile problem
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#4737">[ date ]</a>
<a href="thread.html#4737">[ thread ]</a>
<a href="subject.html#4737">[ subject ]</a>
<a href="author.html#4737">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>Hello,
Since you know where it is, why not use Assembly.LoadFrom()?
On 19 Aug 2004 22:25:06 +1000, Bryan Buchanan &lt;<A HREF="mailto:adslh3nu@tpg.com.au">adslh3nu@tpg.com.au</A>&gt; wrote:
&gt;<i> Hi,
</I>&gt;<i>
</I>&gt;<i> This is slightly off topic.
</I>&gt;<i>
</I>&gt;<i> I have this code:
</I>&gt;<i>
</I>&gt;<i> // check to see if a routine exists to validate
</I>&gt;<i> Assembly ass = Assembly.LoadFile(&quot;validate.dll&quot;);
</I>&gt;<i> Type t = ass.GetType(&quot;validate_method&quot;);
</I>&gt;<i> .....
</I>&gt;<i>
</I>&gt;<i> This works fine if &quot;validate.dll&quot; is in the same directory you are
</I>&gt;<i> running from. I don't know, however, how to tell the runtime system to
</I>&gt;<i> look for this file in some other place.
</I>&gt;<i>
</I>&gt;<i> I've set MONO_PATH, to include the path to this file, but it does not
</I>&gt;<i> help. I've seen a &lt;probing&gt; directive mentioned in some documentation,
</I>&gt;<i> but do not know where to set it.
</I>&gt;<i>
</I>&gt;<i> Can anyone enlighten me.
</I>&gt;<i>
</I>&gt;<i> Thanks,
</I>&gt;<i>
</I>&gt;<i> Bryan
</I>&gt;<i>
</I>&gt;<i> _______________________________________________
</I>&gt;<i> Gtk-sharp-list maillist - <A HREF="mailto:Gtk-sharp-list@lists.ximian.com">Gtk-sharp-list@lists.ximian.com</A>
</I>&gt;<i> <A HREF="http://lists.ximian.com/mailman/listinfo/gtk-sharp-list">http://lists.ximian.com/mailman/listinfo/gtk-sharp-list</A>
</I>&gt;<i>
</I>
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI> Previous message: <A HREF="004727.html">[Gtk-sharp-list] location of assemblies
</A></li>
<LI> Next message: <A HREF="004728.html">[Gtk-sharp-list] compile problem
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#4737">[ date ]</a>
<a href="thread.html#4737">[ thread ]</a>
<a href="subject.html#4737">[ subject ]</a>
<a href="author.html#4737">[ author ]</a>
</LI>
</UL>
</body></html>