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?
Manage packages for the solution Select a solution in Solution Manager, and then select Tools > NuGet Package Manager > Manage NuGet Packages for Solution. In the Manage NuGet Packages for Solution window, select the projects that are affected by the operations.
NuGet provides the tools developers need for creating, publishing, and consuming packages. Most importantly, NuGet maintains a reference list of packages used in a project and the ability to restore and update those packages from that list.
In Visual Studio, right-click on your project in the Solution Explorer, and then select Manage NuGet Packages.... Select Browse, and then select your feed from the Package source dropdown menu. Use the search bar to look for packages from your feed.
The Package Manager Console in Visual Studio uses PowerShell commands to interact with NuGet packages. You can use the console when there's no way to do an operation through the Package Manager UI. You can also use dotnet CLI or NuGet CLI commands in the console.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With