IronRuby > Frequently Asked Questions > How do I compile the code on the .NET platform?

How do I compile the code on the .NET platform?

Building With Visual Studio

  1. Open the file IronRuby.sln in the trunk (root) directory of the source code.
  2. Rebuild the solution.

 

Building With Rake

1. Install the latest Ruby with gems enabled (such as the Ruby One-Click Installer v1.8.6-25 or below)

2. Install the pathname2 gem. Open a command-prompt and type:

 gem install pathname2

3. Open up the Visual Studio 2005/2008 Command prompt or, if using Visual Studio Express, run:

 PATH=%PATH%;c:\Windows\Microsoft.NET\Framework\v2.0.50727\;C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin

4. To view a list of all available rake targets, run the following command from the root (trunk) directory of the source code:

  rake

5. Next run the  Strong Name registration:

runfirst.cmd

6. Next run the following command from the same directory:

 rake compile

7. And last you may want to run unit tests by running this command:

 rake test

 

Tips

 

  • Make sure that csc.exe is in your PATH environment variable. Default location is:
 c:\Windows\Microsoft.NET\Framework\v2.0.50727 
  • Make sure that resgen.exe is in your PATH environment variable. Default location is:
 c:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin

You can also watch a short 3 minute video with a walk through.

Tag page
Viewing 2 of 2 comments: view all
It seems that the dependence of the 'pathname2' gem upon the 'windows-pr' gem is not automatically handled. After installing 'pathname2', when I ran 'rake' the result was a failure to load 'windows/path'. After reading the documentation in 'pathname2', I noted the dependency on 'windows-pr', installed it, and this solved the load failure.
Posted 21:41, 21 Sep 2008
i got a error message: Error 13 The referenced assembly "G:\Merlin\Main\Bin\Debug\Microsoft.Scripting.ExtensionAttribute.dll" was not found. If this assembly is produced by another one of your projects, please make sure to build that project before building this one. where is the Microsoft.Scripting.ExtensionAttribute.dll edited 05:49, 16 Oct 2008
Posted 05:48, 16 Oct 2008
Viewing 2 of 2 comments: view all
You must login to post a comment.