currently, you have to copy MyApp.Core.dll to the location where ir.exe is located.<br><br><div class="gmail_quote">On Thu, Jan 8, 2009 at 1:46 PM, Sam Malone <span dir="ltr"><<a href="mailto:lists@ruby-forum.com">lists@ruby-forum.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
<br>
I'm new to IronRuby. I'm trying to require a .net assembly but I have<br>
the following error message. Any help will be very much appreciated.<br>
<br>
Note :<br>
------<br>
<br>
MyApp.Application.dll references MyApp.Core.dll and both are in the same<br>
folder C:\MyApp\Trunk\Bin\<br>
<br>
Code :<br>
------<br>
<br>
require 'C:\MyApp\Trunk\Bin\MyApp.Application.dll'<br>
include MyApp::Application<br>
<br>
def main<br>
print ZlibCompression.Decompress(ZlibCompression.Compress("toto"))<br>
end<br>
<br>
if __FILE__ == $0<br>
main()<br>
end<br>
<br>
Error message:<br>
--------------<br>
<br>
Unhandled exception:<br>
mscorlib:0:in `ResolveType': Could not load file or assembly<br>
'MyApp.Core, Version=1.0.278.0, Culture=neutral, Public<br>
KeyToken=null' or one of its dependencies. The system cannot find the<br>
file specified. (System::IO::FileNotFoundException<br>
)<br>
from mscorlib:0:in `ResolveTypeHandle'<br>
<font color="#888888">--<br>
Posted via <a href="http://www.ruby-forum.com/" target="_blank">http://www.ruby-forum.com/</a>.<br>
_______________________________________________<br>
Ironruby-core mailing list<br>
<a href="mailto:Ironruby-core@rubyforge.org">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>
</font></blockquote></div><br><br clear="all"><br>-- <br>Michael Letterle<br>[Polymath Prokrammer]<br><a href="http://blog.prokrams.com">http://blog.prokrams.com</a><br><br><br>