<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>That also isn't working for me.&nbsp;</div><div>If I use /paths:full path here or -I "full path here" it still doesn't let me require that assembly .</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><div>On 14/05/2008, at 1:27 PM, Steve Eichert wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">I haven't tried revision 105 to know if it still works but I'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>> 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'm all for features but how do I now require my own homebaked dll because registering them in the GAC isn't the way to go IMHO :)<br> <br> I've tried a bunch of things to get to my dll but it boils down to that it doesn't know how to load it. When I copy my assembly into the ironruby build folder it does work. That just doesn't seem right to me. If there is a new an elegant way to load arbitrary assemblies then I'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> >>> include Twitter::Model<br> c:\tools\IronRuby\src\IronRuby.Libraries\Builtins\ModuleOps.cs:642:in `ConstantMissing': uninitialized constant Object::<br> Twitter (NameError)<div class="Ih2E3d"><br> &nbsp; &nbsp; &nbsp; &nbsp;from :0:in `Initialize##1'<br></div> >>> 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> >>> require 'Sylvester.Contracts, Version=<a href="http://1.0.0.0" target="_blank">1.0.0.0</a>, Culture=neutral, PublicKeyToken=null'<br> c:\tools\IronRuby\src\IronRuby.Libraries\Builtins\Kernel.cs:272:in `Require': 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'<br></div> >>> exit<div class="Ih2E3d"><br> <br> + C:\projects\lumpr\src\Sylvester.DesktopEdition\Sylvester.IronRuby<br>  ir<br> <br></div> >>> Dir.chdir('C:\projects\lumpr\src\Sylvester.DesktopEdition\Sylvester.IronRuby\bin')<br> => 0<br> >>> require 'Sylvester.Contracts, Version=<a href="http://1.0.0.0" target="_blank">1.0.0.0</a>, Culture=neutral, PublicKeyToken=null'<br> c:\tools\IronRuby\src\IronRuby.Libraries\Builtins\Kernel.cs:272:in `Require': 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'<br> >>> 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> >>> Dir.chdir('C:\projects\lumpr\src\Sylvester.DesktopEdition\Sylvester.IronRuby\bin')<br> => 0<br> >>> require 'Sylvester.Contracts, Version=<a href="http://1.0.0.0" target="_blank">1.0.0.0</a>, Culture=neutral, PublicKeyToken=null'<br> c:\tools\IronRuby\src\IronRuby.Libraries\Builtins\Kernel.cs:272:in `Require': 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'<div class="Ih2E3d"><br> >>><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'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 'bin/System.Net.dll'<br> </blockquote></blockquote></blockquote> c:\tools\IronRuby\src\IronRuby.Libraries\Builtins\Kernel.cs:272:in<br> `Require': Invalid character '?' in expression (Synta<br> xError)<br> &nbsp; &nbsp; &nbsp; &nbsp;from :0:in `Initialize##1'<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> _______________________________________________<br>Ironruby-core mailing list<br><a href="mailto:Ironruby-core@rubyforge.org">Ironruby-core@rubyforge.org</a><br>http://rubyforge.org/mailman/listinfo/ironruby-core<br></blockquote></div><br></body></html>