Installing NuGet

This section looks at how NuGet solves that pain with a walkthrough of using NuGet to install ELMAH. The number of steps is vastly reduced as compared to doing this manually. The first step is a one-time-only step: you have to install NuGet itself.

If you have ASP.NET MVC 4 or Visual Studio 2012 installed, you already have NuGet. If you are still using Visual Studio 2010 and don't have NuGet installed, it's easy to install it via the Visual Studio Extension Manager, as shown in the following steps:

1. Click Tools &cmdarr; Extension Manager, as shown in Figure 10.1. This brings up the Extension Manager dialog, which is used to install extensions to Visual Studio.
2. The dialog lists installed packages by default, so be sure to click the Online Gallery tab, as shown in Figure 10.2.
3. At the time that I write this, NuGet is the most popular extension in the gallery. This conveniently places it first in the list of online packages in the dialog. You can also type NuGet in the search bar in the top right to find it. Either way, once you find NuGet, click the Download button and follow the instructions to install it.

If you already have NuGet installed, click the Updates tab to see if a newer version is available. The NuGet team plans to release a new minor version update on a monthly basis, give or take, so there might be some new goodies in there by the time you read this.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset