Forum: IronRuby require my assembly

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
3562629bdf957e6b8621489a8a8e11d5?d=identicon&s=25 Sam Malone (sammalone)
on 2009-01-08 19:46

  I'm new to IronRuby. I'm trying to require a .net assembly but I have
the following error message. Any help will be very much appreciated.

Note :

MyApp.Application.dll references MyApp.Core.dll and both are in the same
folder C:\MyApp\Trunk\Bin\

Code :

require 'C:\MyApp\Trunk\Bin\MyApp.Application.dll'
include MyApp::Application

def main
  print ZlibCompression.Decompress(ZlibCompression.Compress("toto"))

if __FILE__ == $0

Error message:

Unhandled exception:
mscorlib:0:in `ResolveType': Could not load file or assembly
'MyApp.Core, Version=, Culture=neutral, Public
KeyToken=null' or one of its dependencies. The system cannot find the
file specified. (System::IO::FileNotFoundException
        from mscorlib:0:in `ResolveTypeHandle'
68f1bd9e9a7d9d10f0278c6535f700fe?d=identicon&s=25 Michael Letterle (Guest)
on 2009-01-08 20:02
(Received via mailing list)
currently, you have to copy MyApp.Core.dll to the location where ir.exe
1e39a948a58f4569c53d971c2e120920?d=identicon&s=25 Ivan Porto carrero (casualjim)
on 2009-01-08 20:21
(Received via mailing list)
For me it works with a path too

But I do use forward slashes

It does have some weirdness though, because sometimes I have to actually
copy the assembly to the directory where ir.exe lives. I'm not sure as
when exactly that needs to happen.

On Thu, Jan 8, 2009 at 7:51 PM, Michael Letterle
This topic is locked and can not be replied to.