Few things in CLRland are more frustrating than the Fusion loader.  Your 
simplest short-term fix is probably to set the probe path in ir.exe.config:

<configuration>
  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <!-- Indicates where the runtime should search for other assemblies. -->
      <probing privatePath="C:\Program Files\SDK" />
    </assemblyBinding>
  </runtime>
</configuration>

(Disclaimer: haven't tried this myself yet)

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ben Hall
Sent: Tuesday, December 09, 2008 10:14 AM
To: ironruby-core@rubyforge.org
Subject: [Ironruby-core] Loading Assemblies

Hello,

Just been playing around with some interop with our SDK.  This is our setup.

SDK is installed into C:\Program Files\SDK\

ir is C:\IronRuby\ir.exe

I then add C:\IronRuby to my path folder.

I attempt to do the following to access the SDK.

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

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@rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core

_______________________________________________
Ironruby-core mailing list
Ironruby-core@rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core

Reply via email to