Search code examples
ironrubyrequire

IronRuby - how to require .NET assemblies without strong name?


This page on the IronRuby help website talks about being able to 'require' some well-known assemblies such as System.Windows.Forms without needing to crank out the entire 'ah-come-on-gimme-a-break-here-you-cannot-be-serious' strong name of the assembly.

In the docs it says this:

>>> require "System.Windows.Forms"  
=> true  

But when I try the same 'require', I get this:

>>> require "System.Windows.Forms"
IronRuby.Libraries:0:in 'require': no such file to load -- System.Windows.Forms (LoadError) 
        from :0:in 'Initialize##1'

What might I be doing wrong? Could it be a setup problem? I can't see this "libs directory on the load path" that gets mentioned in the documentation. Is the documentation wrong?

Thanks.


Solution

  • Well, it was a setup problem - there were two copies of ir.exe in the IronRuby download, and I was using the wrong one.