IronRuby 中的跑鞋克隆
我发现了一篇关于 使用 IronRuby 创建跨平台 GUI 的很酷的文章,其中有人重新创建了[鞋子](http://en.wikipedia.org/wiki/Shoes_(GUI_toolkit) DSL by _why the lucky dead 在 IronRuby 中,
了!
太棒 IronRuby 二进制文件 和 文章中的代码并运行以下命令:
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'
如何运行这些示例应用程序?
I found cool article on Creating cross platform GUI's with IronRuby where someone re-created the [Shoes](http://en.wikipedia.org/wiki/Shoes_(GUI_toolkit) DSL by _why the lucky stiff in IronRuby.
Awesome right!
So, I downloaded the IronRuby binaries and the code from the article and ran the following command:
c:\IronRuby\bin\ir hello_world.rb
But I get the following error:
: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'
How do I get these sample apps to run?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
从 Shoes.rb 中删除以下 5 行后,我能够使 4 个演示示例正常工作:
require 'Microsoft.Scripting, Version=1.0.0.2000, Culture=neutral, PublicKeyToken=null'
要求“IronRuby,版本=1.0.0.0,文化=中性,PublicKeyToken=null”
包括 Microsoft::Scripting::Hosting
包括 Ruby::Runtime
include Ruby
这些行不是必需的。
I was able to make the 4 demos examples work after removing the following 5 lines from shoes.rb:
require 'Microsoft.Scripting, Version=1.0.0.2000, Culture=neutral, PublicKeyToken=null'
require 'IronRuby, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
include Microsoft::Scripting::Hosting
include Ruby::Runtime
include Ruby
These lines are not needed.
我怀疑它要求的 MS.Scripting 版本与您拥有的版本不匹配,这是一个非常常见的问题。也许检查版本#s?
要检查版本号,只需右键单击
Microsoft.Scripting.dll
,您就会看到版本号。I suspect the version of MS.Scripting that it's asking for doesn't match the version you've got, that's a pretty common problem. Maybe check the version #s?
To check the version number, just right-click on
Microsoft.Scripting.dll
and you'll see the version #.