简体   繁体   中英

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM