Search code examples
rubyuser-interfaceironrubyshoes

Run Shoes clone in IronRuby


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?


Solution

  • 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 #.