Skip to content

Enable NuGet Transitive Pinning#1657

Open
dfederm wants to merge 1 commit into
DevToys-app:mainfrom
dfederm:feature/transitive-pinning
Open

Enable NuGet Transitive Pinning#1657
dfederm wants to merge 1 commit into
DevToys-app:mainfrom
dfederm:feature/transitive-pinning

Conversation

@dfederm
Copy link
Copy Markdown

@dfederm dfederm commented Feb 18, 2026

This enables Transitive Pinning which essentially makes your Directory.Packages.props a partial lock file. If a package is listed in Directory.Packages.props, that will be the version, even if a project doesn't explicitly reference that package and it's just a transitive dependency. This is the primary benefit of transitive pinning, to ensure all projects within the repo are using the same version of all packages. It also allows security issues in transitive dependencies to be more easily addressed by simply updating Directory.Packages.props instead of adding a top-level dependency to all impacted projects, which is far messier and less maintainable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant