我在Creating cross platform GUI's with IronRuby上找到了一篇很酷的文章,里面有人重新创造了鞋子(http://en.wikipedia.org/wiki/Shoes_(GUI_toolkit) DSL by _why the lucky stiff in IronRuby )。
太棒了!
因此,我下载了IronRuby binaries和code from the article并运行以下命令:
c:\IronRuby\bin\ir hello_world.rb但我得到以下错误:
:0:in `require': no such file to load -- Microsoft.Scripting, Version=1.0.0.2000 Culture=neutral, PublicKeyToken=null (LoadError)
from ./shoes.rb:5
from hello_world.rb:1
from :0:in `require'如何运行这些示例应用程序?
发布于 2009-09-15 01:48:35
我怀疑它要求的MS.Scripting版本与您获得的版本不匹配,这是一个非常常见的问题。也许可以检查版本号?
要检查版本号,只需右键单击Microsoft.Scripting.dll,您将看到版本号。
发布于 2009-09-29 22:47:42
在从shoes.rb中删除以下5行代码后,我能够运行这4个演示示例:
需要“Microsoft.Scripting,Version=1.0.0.2000,Culture=neutral,PublicKeyToken=null”
需要“IronRuby,Version=1.0.0.0,Culture=neutral,PublicKeyToken=null”
包括Microsoft::Scripting::Hosting
包含Ruby::Runtime
包含Ruby
不需要这些行。
https://stackoverflow.com/questions/1424395
复制相似问题