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.
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:
-
DLL (e.g.
C : \ Program files \ whichever \ whatever \ blah.dll
) requires full path -
strong name is required (this Only works if it is in the GAC or elsewhere with IronRuby DL can be found)
-
Usage
load_assembly
- this is the most convenient, but IIRC itLoadFrom
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
Post a Comment