IronRuby 中的跑鞋克隆

发布于 2024-08-04 22:33:38 字数 1098 浏览 4 评论 0原文

我发现了一篇关于 使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

数理化全能战士 2024-08-11 22:33:38

从 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.

百善笑为先 2024-08-11 22:33:38

我怀疑它要求的 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 #.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文