Skip to content
This repository has been archived by the owner on Jul 20, 2020. It is now read-only.

Latest commit

 

History

History
51 lines (41 loc) · 1.47 KB

how_to_build.md

File metadata and controls

51 lines (41 loc) · 1.47 KB

How to build Nancy.Hal

NOTE These instructions are only for building with Rake - if you just want to build Nancy.Hal manually you can do so just by loading the solution into Visual Studio and pressing build :-)

Prerequisites

gem update --system
  • Install the bundler gem
gem install bundler
  • Install required gems
bundle install

Building Nancy.Hal

  • At the command prompt, navigate to the Nancy.Hal root folder (should contain rakefile.rb)
  • To run the default build (which will compile, test and package Nancy.Hal) type the following command:
bundle exec rake

In addition, you can see the full list of all the build tasks by running:

bundle exec rake -T

To run a particular task ('test' for example), use the following command:

bundle exec rake test

You can run multiple tasks by listing them ('test' then 'nuget' for example):

bundle exec rake test nuget_package

After the build has completed, there will be a new folder in the root called "build". It contains the following folders:

  • binaries -> All the Nancy.Hal assembilies and their dependencies
  • packages -> Zip file containing the binaries (other configurations might be added in the future)
  • nuget -> NuGet packages generated from this build