Share via


Compiling IronRuby

Hi...

I was recently doing an update regarding Visual Studio. I now have Visual C# Express 2008 on my machine (the final) and no more VS2005.

Also, I was doing an update with IronRuby (currently I have Version 65 on my drive) and discovered that the solution file for the Visual Studio 2008 version is corrupt somehow.

Reason is that the paths of the different projects have been relocated. Do two simple steps to get it compiled again:

1. In the header of the Ruby.sln file paste this text snippets (just before the Global section

Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RubyTestHost", "utils\ironruby.RubyTestHost\RubyTestHost.csproj", "{8103D91B-89D8-4A18-9A40-426992602EA2}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ruby", "src\ironRuby\Ruby.csproj", "{7F6984B4-EE6D-4E6F-ABB1-E210D7DC4FDD}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ruby.Console", "utils\IronRuby.Console\Ruby.Console.csproj", "{D6AB587D-A888-4B98-85AC-F15E36F53838}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ClassInitGenerator", "utils\ironruby.ClassInitGenerator\ClassInitGenerator.csproj", "{166940A1-2C91-4BD0-B72B-A517FBD8BF0B}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Scripting", "src\Microsoft.Scripting\Microsoft.Scripting.csproj", "{2AE75F5A-CD1F-4925-9647-AF4D1C282FB4}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IronRuby.Libraries", "src\IronRuby.Libraries\IronRuby.Libraries.csproj", "{77323B06-15A2-4CF4-8A7A-86EAA2B66498}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IronRuby.Libraries.Scanner", "Utils\IronRuby.Libraries.Scanner\IronRuby.Libraries.Scanner.csproj", "{5F692D9C-968B-48BF-AC2F-6B4F54D9C1BB}"
EndProject

It contains the new paths.

2. In some projects are references to mscorlib and System which were not resolved on my machine. Simply delete mscorlib (it will be referenced by any chance). Delete and re-reference System.

It now compiles with my machine...

CU

0xff

Comments