As a simple example to show off what NuPack enables – let’s
assume we are working on a brand new ASP.NET application and want to use the
popular open-source “ELMAH”
library to log and report errors with our site. To install ELMAH
today, you’d need to manually download it, unzip it, add a reference to your
project, make sure you have source control bindings for the library setup
correctly, and update the web.config file of your application to include the
Elmah HttpModule entries. All doable – but a little tedious.
With NuPack installed, you can simply open the new “Package
Manager Console” that NuPack enables inside VS and type “Add-Package elmah”
within it:
Typing "Add-Package elmah” causes NuPack
to check an online feed to locate the Elmah library, download it, add a
reference of it to your current project, and automatically add the appropriate
Elmah registration entries within your application’s web.config file:
And now we have Elmah setup and installed for our project,
and error report logging enabled. No additional manual steps required to
make it work.