-
Book Overview & Buying
-
Table Of Contents
ASP.NET jQuery Cookbook (Second Edition) - Second Edition
By :
NuGet is a package manager available with Visual Studio. It simplifies the process of installing and upgrading packages. This recipe demonstrates the use of NuGet to download the jQuery library.
To launch NuGet for a particular project, go to Tools | NuGet Package Manager | Manage NuGet Packages for Solution... as shown in the following screenshot:

Alternatively, right-click on the project in the Solution Explorer tab, and select Manage NuGet Packages.
Perform the following steps to download jQuery using NuGet Manager:

Searching for packages in NuGet
If jQuery is not visible in the left-hand side panel, you need to search for it by keying in jQuery in the search box in the top left corner of the NuGet Manager screen.
The NuGet Package Manager downloads the selected version of jQuery in the Scripts folder. Any other version existing in the Scripts folder is deleted. The Scripts folder will look like the following screenshot:

The files downloaded by NuGet are as follows (the version numbers may change in the future):
The Downloading jQuery from jQuery.com recipe
Change the font size
Change margin width
Change background colour