From the course: .NET Deep Dive: NuGet Package Manager
Unlock the full course today
Join today to access over 24,100 courses taught by industry experts.
Package dependencies - NuGet Tutorial
From the course: .NET Deep Dive: NuGet Package Manager
Package dependencies
- [Instructor] Anytime a package is installed, NuGet also installs any additional package on which that first package depends. Installing these dependency packages happens on the original install or when reinstalled and also during a restore process. Dependencies might also have dependencies on their own, which can continue to an arbitrary depth. Here's a look at a dependency graph. It describes the relationships between packages at all levels. So in my project, I have a dependency on package A and package B. Package A itself has dependencies on package X and package Y. Package B has dependencies on package X and package Z, and package Y has dependencies on its own. When multiple packages have the same dependency then the same package ID can appear in the graph multiple times. Potentially, with different version constraints. However, only one version of a given package can be used in a project. So NuGet must choose…
Contents
-
-
-
-
-
-
Package versioning5m 55s
-
(Locked)
Package dependencies5m 9s
-
(Locked)
Enable Package Restore in Visual Studio47s
-
(Locked)
Edit version number in PackageReference5m 2s
-
(Locked)
How Package Restore installs packages42s
-
(Locked)
Run Package Restore manually1m 46s
-
ASP.NET and client-side package managers3m 59s
-
-
-
-
-
-
-
-