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


Conversations on ironRuby help website, such as some well-known assemblies like System.Windows.Forms are required

The entire ' ah-aa-on-de-deemem-a-break-can-be-you-be-serious-can not be . The document says:

  & gt; & Gt; & Gt; "System.Windows.Forms" = & gt; True  

But when I try the same 'requirement', then I get it:

  gt; & Gt; Requires "System.Windows.Forms" IronRuby.Libraries: 0: in 'Need': to load such a file - from System.Windows.Forms (LoadError): 0: In 'Start ## 1'  

What can I do wrong? Could this be a setup problem? I do not see this "Libish Directory on Load Path" which is described in the documentation. Is the documentation wrong?

Thank you.

The way it works, IronRuby people wrote a bunch of wrapper scripts.

Install your iron path & gt; Look in \ lib \ ironruby and you will see system.Windows Forms.rb , System.Drawing.rb etc.

What happens when you need the 'System.Windows.Forms' that finds the IronRuby RB file and runs it inside code inside that file only for you Necessary full-name name is given.

If you want to load other DLLs that they did not write rappers, then you have 3 options:

  1. DLL (e.g. C : \ Program files \ whichever \ whatever \ blah.dll ) requires full path

  2. strong name is required (this Only works if it is in the GAC or elsewhere with IronRuby DL can be found)

  3. Usage load_assembly - this is the most convenient, but IIRC it LoadFrom context In, does not load load the DLLs in context.
    If you do not understand its meaning, then basically it is in the test, but do not do it in production: -)


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -