I haven&#39;t tried revision 105 to know if it still works but I&#39;ve been using the /paths command line option to tell IronRuby where my assemblies are.<br><br>ir.exe paths/:C:\paths\to\my\dlls my_ruby_script.rb<br><br>
Cheers,<br>Steve<br><br><div class="gmail_quote">On Tue, May 13, 2008 at 9:17 PM, Ivan Porto Carrero &lt;<a href="mailto:ivan@flanders.co.nz">ivan@flanders.co.nz</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Ok I&#39;m all for features but how do I now require my own homebaked dll because registering them in the GAC isn&#39;t the way to go IMHO :)<br>
<br>
I&#39;ve tried a bunch of things to get to my dll but it boils down to that it doesn&#39;t know how to load it. When I copy my assembly into the ironruby build folder it does work. That just doesn&#39;t seem right to me. If there is a new an elegant way to load arbitrary assemblies then I&#39;d love to know. In meantime I can hack my source to add assembly loading from a path as well<br>

<br>
Below the output from my various tries to get my assembly loaded without putting it in the ironruby binaries folder<div class="Ih2E3d"><br>
<br>
+ C:\projects\lumpr\src\Sylvester.DesktopEdition\Sylvester.IronRuby<br></div>
 ir -I C:\projects\lumpr\src\Sylvester.DesktopEdition\Sylvester.IronRuby\bin\Sylvester.Contracts.dll<br>
<br>
&gt;&gt;&gt; include Twitter::Model<br>
c:\tools\IronRuby\src\IronRuby.Libraries\Builtins\ModuleOps.cs:642:in `ConstantMissing&#39;: uninitialized constant Object::<br>
Twitter (NameError)<div class="Ih2E3d"><br>
 &nbsp; &nbsp; &nbsp; &nbsp;from :0:in `Initialize##1&#39;<br></div>
&gt;&gt;&gt; exit<div class="Ih2E3d"><br>
<br>
+ C:\projects\lumpr\src\Sylvester.DesktopEdition\Sylvester.IronRuby<br></div>
 ir -I C:\projects\lumpr\src\Sylvester.DesktopEdition\Sylvester.IronRuby\bin<br>
<br>
&gt;&gt;&gt; require &#39;Sylvester.Contracts, Version=<a href="http://1.0.0.0" target="_blank">1.0.0.0</a>, Culture=neutral, PublicKeyToken=null&#39;<br>
c:\tools\IronRuby\src\IronRuby.Libraries\Builtins\Kernel.cs:272:in `Require&#39;: no such file to load -- Sylvester.Contract<br>
s, Version=<a href="http://1.0.0.0" target="_blank">1.0.0.0</a>, Culture=neutral, PublicKeyToken=null (LoadError)<div class="Ih2E3d"><br>
 &nbsp; &nbsp; &nbsp; &nbsp;from :0:in `Initialize##1&#39;<br></div>
&gt;&gt;&gt; exit<div class="Ih2E3d"><br>
<br>
+ C:\projects\lumpr\src\Sylvester.DesktopEdition\Sylvester.IronRuby<br>
 ir<br>
<br></div>
&gt;&gt;&gt; Dir.chdir(&#39;C:\projects\lumpr\src\Sylvester.DesktopEdition\Sylvester.IronRuby\bin&#39;)<br>
=&gt; 0<br>
&gt;&gt;&gt; require &#39;Sylvester.Contracts, Version=<a href="http://1.0.0.0" target="_blank">1.0.0.0</a>, Culture=neutral, PublicKeyToken=null&#39;<br>
c:\tools\IronRuby\src\IronRuby.Libraries\Builtins\Kernel.cs:272:in `Require&#39;: no such file to load -- Sylvester.Contract<br>
s, Version=<a href="http://1.0.0.0" target="_blank">1.0.0.0</a>, Culture=neutral, PublicKeyToken=null (LoadError)<br>
 &nbsp; &nbsp; &nbsp; &nbsp;from :0:in `Initialize##7&#39;<br>
&gt;&gt;&gt; exit<div class="Ih2E3d"><br>
<br>
+ C:\projects\lumpr\src\Sylvester.DesktopEdition\Sylvester.IronRuby<br></div>
 ir -I C:\projects\lumpr\src\Sylvester.DesktopEdition\Sylvester.IronRuby\bin<br>
<br>
&gt;&gt;&gt; Dir.chdir(&#39;C:\projects\lumpr\src\Sylvester.DesktopEdition\Sylvester.IronRuby\bin&#39;)<br>
=&gt; 0<br>
&gt;&gt;&gt; require &#39;Sylvester.Contracts, Version=<a href="http://1.0.0.0" target="_blank">1.0.0.0</a>, Culture=neutral, PublicKeyToken=null&#39;<br>
c:\tools\IronRuby\src\IronRuby.Libraries\Builtins\Kernel.cs:272:in `Require&#39;: no such file to load -- Sylvester.Contract<br>
s, Version=<a href="http://1.0.0.0" target="_blank">1.0.0.0</a>, Culture=neutral, PublicKeyToken=null (LoadError)<br>
 &nbsp; &nbsp; &nbsp; &nbsp;from :0:in `Initialize##8&#39;<div class="Ih2E3d"><br>
&gt;&gt;&gt;<br>
<br>
Thanks<br>
Ivan<br>
<br>
On 14/05/2008, at 10:42 AM, John Lam (IRONRUBY) wrote:<br>
<br>
</div><div><div></div><div class="Wj3C7c"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
One more thing, r105 adds support for the -I command line switch, so you can now:<br>
<br>
ir -I path-to-your-includes-directory yourapp.rb<br>
<br>
Thanks,<br>
-John<br>
<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:ironruby-core-bounces@rubyforge.org" target="_blank">ironruby-core-bounces@rubyforge.org</a> [mailto:<a href="mailto:ironruby-core-bounces@rubyforge.org" target="_blank">ironruby-core-bounces@rubyforge.org</a>] On Behalf Of Ivan Porto Carrero<br>

Sent: Tuesday, May 13, 2008 3:32 PM<br>
To: <a href="mailto:ironruby-core@rubyforge.org" target="_blank">ironruby-core@rubyforge.org</a><br>
Subject: [Ironruby-core] r105 broke assembly loading<br>
<br>
Hi<br>
<br>
I just updated to r105 and now I can&#39;t require assemblies anymore.<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

require &#39;bin/System.Net.dll&#39;<br>
</blockquote></blockquote></blockquote>
c:\tools\IronRuby\src\IronRuby.Libraries\Builtins\Kernel.cs:272:in<br>
`Require&#39;: Invalid character &#39;?&#39; in expression (Synta<br>
xError)<br>
 &nbsp; &nbsp; &nbsp; &nbsp;from :0:in `Initialize##1&#39;<br>
<br>
Do I submit a bug for that?<br>
<br>
Cheers<br>
Ivan<br>
_______________________________________________<br>
Ironruby-core mailing list<br>
<a href="mailto:Ironruby-core@rubyforge.org" target="_blank">Ironruby-core@rubyforge.org</a><br>
<a href="http://rubyforge.org/mailman/listinfo/ironruby-core" target="_blank">http://rubyforge.org/mailman/listinfo/ironruby-core</a><br>
_______________________________________________<br>
Ironruby-core mailing list<br>
<a href="mailto:Ironruby-core@rubyforge.org" target="_blank">Ironruby-core@rubyforge.org</a><br>
<a href="http://rubyforge.org/mailman/listinfo/ironruby-core" target="_blank">http://rubyforge.org/mailman/listinfo/ironruby-core</a><br>
</blockquote>
<br>
_______________________________________________<br>
Ironruby-core mailing list<br>
<a href="mailto:Ironruby-core@rubyforge.org" target="_blank">Ironruby-core@rubyforge.org</a><br>
<a href="http://rubyforge.org/mailman/listinfo/ironruby-core" target="_blank">http://rubyforge.org/mailman/listinfo/ironruby-core</a><br>
</div></div></blockquote></div><br>