Introduction

The Package Manager Console is a PowerShell console within Visual Studio used to interact with NuGet and automate Visual Studio. You can access the Package Manager Console from within Visual Studio by going to Tools -> Library Package Manager -> Package Manager Console.

library package manager

The following is a screen shot for the console:

package manager console

Benefits of using Package Manager Console (PMC)

So, why should you bother to use PMC given that you have a nice UI for the NuGet system integrated in Visual Studio? The following are the benefits of using PMC over the NuGet UI:

Let's see some quick examples of the usage. Now, you can go ahead and type a command to install a new package in your project:

package manager pm

To get help on any command, you can type the command Get-help <command>.

install packages

You can press the Tab key after entering a few characters to trigger the autocomplete functionality. You can even resolve the package names using the Tab key when using the install-package command.

database update

You can change the default project from the top right drop down. The commands will be applied to the selected project only.

test package manager