【发布时间】:2010-02-03 17:36:18
【问题描述】:
This page IronRuby 帮助网站上谈到能够“需要”一些众所周知的程序集,例如 System.Windows.Forms,而无需编写整个 'ah-come-on-gimme- a-break-here-you-cannot-be-serious' 程序集的强名称。
在文档中是这样说的:
>>> 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 目录”。文档有错吗?
谢谢。
【问题讨论】: