Question

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?

Was it helpful?

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

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top