This page在IronRuby帮助网站上谈到能够'需要'一些众所周知的程序集,如System.Windows.Forms,而不需要开始整个'啊 - 来这里gimme-a-break-here - 你不可能是认真的'大会的强名称。IronRuby - 如何要求没有强名称的.NET程序集?
在文档就这样说:
>>> require "System.Windows.Forms"
=> true
但是当我尝试相同的“需要”,我得到这个:
>>> require "System.Windows.Forms"
IronRuby.Libraries:0:in 'require': no such file to load -- System.Windows.Forms (LoadError)
from :0:in 'Initialize##1'
什么可能我是做错了什么?这可能是一个设置问题?我看不到在文档中提到的“加载路径上的libs目录”。文档是否错误?
谢谢。
感谢 - 这是有趣的,看看IronRuby的民间如何实现这一点。 – mackenir 2010-03-02 09:20:04
我有一个不同的问题,并使用'load_assembly'修复它。我在哪里可以找到'require'和'load_assembly'之间差异的更多细节? – 2015-02-23 03:02:08