Mike Lenart
Mike Lenart

Reputation: 939

What is the difference between "Managing Nuget Packages" at the solution level in Visual Studio 2019 vs at the Project level?

I currently have a Nuget Package (MediatR) at the Solution Level (via Manage Nuget Packages for Solution). I have a project that needs that package. Do I need to install it also at the Project level? When do you manage them at the Solution level vs. Project level?

Upvotes: 12

Views: 2110

Answers (1)

jessehouwing
jessehouwing

Reputation: 114641

The "Manage NuGet Packages for Solution" shows an aggregate of all the projects. When installing a package, you must still select which projects to install them in.

It provides a convenient location to automatically update or install packages across multiple projects.

When you manage packages for a single project you get a project-only view.

How packages are installed is no different between the two options.

Upvotes: 8

Related Questions