[Ironruby-core] Loading Assemblies

Tomas Matousek Tomas.Matousek at microsoft.com
Tue Dec 9 16:46:17 EST 2008


No. You need to set it in App.config. But I think the probe path could only be a subdirectory of the app. That means a subdirectory of a path where ir.exe is.

We are working on improving assembly loading for IronRuby.

Tomas

-----Original Message-----
From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Thibaut Barrère
Sent: Tuesday, December 09, 2008 11:46 AM
To: ironruby-core at rubyforge.org
Subject: Re: [Ironruby-core] Loading Assemblies

> require 'C:\Program Files\SDK\a.dll'
> require 'C:\Program Files\SDK\b.dll'
> require 'C:\Program Files\SDK\c.dll'

Never tried that with IronRuby, but would the following work ?

$LOAD_PATH << 'C:\Program Files\SDK\'

-- Thibaut

>
> B has a dependency on a.  a loads file, but when loading b.dll an
> exception is thrown within LoadTypesFromAssembly because it cannot
> find a.dll.
>
> This is a serious problem, without copying all the assemblies into my
> IronRuby directory I'm not sure how to load the types and use our SDK?
> Installing into the GAC isn't an option.
>
> Please help!
>
> Thanks
>
> Ben
> _______________________________________________
> Ironruby-core mailing list
> Ironruby-core at rubyforge.org
> http://rubyforge.org/mailman/listinfo/ironruby-core
>
_______________________________________________
Ironruby-core mailing list
Ironruby-core at rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core



More information about the Ironruby-core mailing list