[Ironruby-core] require my assembly

Ivan Porto Carrero ivan at flanders.co.nz
Thu Jan 8 14:06:35 EST 2009


For me it works with a path too

http://code.google.com/p/ironruby-dbi/source/browse/trunk/src/ironruby-dbi/dbd-adonet/ADONET.rb

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 to
when exactly that needs to happen.


On Thu, Jan 8, 2009 at 7:51 PM, Michael Letterle <michael.letterle at gmail.com
> wrote:

> currently, you have to copy MyApp.Core.dll to the location where ir.exe is
> located.
>
>
> On Thu, Jan 8, 2009 at 1:46 PM, Sam Malone <lists at ruby-forum.com> wrote:
>
>> Hi,
>>
>>  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"))
>> end
>>
>> if __FILE__ == $0
>>  main()
>> end
>>
>> Error message:
>> --------------
>>
>> Unhandled exception:
>> mscorlib:0:in `ResolveType': Could not load file or assembly
>> 'MyApp.Core, Version=1.0.278.0, 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'
>> --
>> Posted via http://www.ruby-forum.com/.
>> _______________________________________________
>> Ironruby-core mailing list
>> Ironruby-core at rubyforge.org
>> http://rubyforge.org/mailman/listinfo/ironruby-core
>>
>
>
>
> --
> Michael Letterle
> [Polymath Prokrammer]
> http://blog.prokrams.com
>
>
>
> _______________________________________________
> Ironruby-core mailing list
> Ironruby-core at rubyforge.org
> http://rubyforge.org/mailman/listinfo/ironruby-core
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20090108/5825671c/attachment-0001.html>


More information about the Ironruby-core mailing list