Prerequisites - nsubstitute/NSubstitute GitHub Wiki

A full build of NSubstitute, including document/website generation and packaging, requires the following (in addition to .NET development tools):

  • Git. Git will need to be on your path to work with the project build script.
  • [Optional] To build the documentation as well, you'll need Ruby 1.9+ (using RubyInstaller for Windows is probably easiest), the RubyInstaller DevKit (see wiki for details) and bundler. Running bundle install will then fetch the required dependencies. You can get away without this if you don't need to generate the documentation website.

Note: If you have problems with rake and Ruby 1.9.2, see this StackOverflow answer on removing the rake gem and instead using the bundled version of rake.