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