CentralPackageVersions
CentralPackageVersions, also known as Central Package Versions, is a pattern in NuGet Central Package Management that centralizes the version numbers of NuGet packages used by multiple projects in a solution. The aim is to reduce version drift and simplify updates by maintaining a single source of truth for package versions.
Typically, a central file named Directory.Packages.props at the repository root holds the configuration. The file declares
The central file is checked into source control and updated to bump versions in one place, which
Benefits of CentralPackageVersions include easier management of package updates, reduced risk of conflicting versions across projects,
Limitations and considerations include the requirement for SDK-style projects and tooling that supports central package management.
See also: NuGet, Central Package Management, Directory.Packages.props.