14/06/2015 by Nitesh

How To Install a Nuget Package In Project


If you are a Microsoft developer, you must be aware about Nuget. In case you’re not aware, it is the package manager for the Microsoft development platform including .NET. The NuGet Gallery is the central package repository used by all package authors and consumers. In this post, I will show you how can you add any Nuget package to your project.

There are 2 ways to add Nuget packages to your project. We will take the example of adding jQuery to our project –

Via Package Manager Console using Commands

Package Manager Console is a Window where you can run Powershell scripts to add/remove/update Nuget packages. To open the Package Manager Console, you need to go to Tools > Nuget Package Manager > Package Manager Console.


To install jQuery, you can go to the Package Manager Console and type –

Install-Package jQuery

As soon as you do, jQuery will be added to your project.

Via Visual Studio IDE using mouse clicks

If you’re someone who would like to perform the installation using mouse and mot using command line, you can do the following –

  1. Right click on Solution Explorer and click Manage Nuget Packagesnuget-2
  2. Search for your Library, jQuery in our case and hit Enter.
  3. Click Install button present on the right side of the project you want to install and you’re done.


Hope this post helps you in installing Nuget packages in your project. Keep learning and sharing.