views:

224

answers:

3

I found cool article on Creating cross platform GUI's with IronRuby where someone re-created the Shoes 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?

+1  A: 

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?

Paul Betts
How do I check the version? Can you elaborate a little? Thanks!
jrhicks
Just right-click on Microsoft.Scripting.dll and see the version #
Paul Betts
There are a few versions when you view the dll properties. I found the "assembly" version to be correct. I also had to set the Public Key Token - I was able to find this value in the ir.exe.config file. Thx.
jrhicks
http://www.ironruby.net/Documentation/.NET/Assemblies
jrhicks
+1  A: 

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.

Philippe Monnet
A: 

I found a very good website that can buy shoes, many beautiful shoes, I bought two, good quality and price is very cheap: http://www.shoes-from-china.com/

qizhishou