Managing Packages in a Solution

So far, we've shown you how you can add, update, and remove packages at the project level. In a lot of software development projects, multiple projects share the same dependencies. For example, multiple projects in a solution can have a dependency on Microsoft's Entity Framework (which is also on NuGet with package ID EntityFramework).

Both the NuGet Visual Studio Extension and the Package Manager Console support managing and updating packages across project boundaries. This enables you to have a consistent set of package dependencies in your solution, all having the same version and assemblies. Imagine if you had to update references manually in multiple projects!

Using a large Visual Studio solution, this section ...

Get Pro NuGet now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.