Migrate to Centralized NuGet Package Management (CPM)#21
Merged
Conversation
Co-authored-by: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Migrate to Centralized NuGet Package Management
Migrate to Centralized NuGet Package Management (CPM)
Feb 26, 2026
There was a problem hiding this comment.
Pull request overview
This pull request migrates the repository from per-project package version management to NuGet's Centralized Package Management (CPM) pattern, consolidating all package versions into a single Directory.Packages.props file. This establishes a single source of truth for dependency versions across the solution.
Changes:
- Created
Directory.Packages.propswith centralized version management enabled and all 7 package versions defined alphabetically - Removed
Versionattributes from allPackageReferenceelements in both project files while preserving other attributes - Added
Directory.Packages.propsto the solution file under the existingMiscfolder
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| Directory.Packages.props | New file enabling CPM with ManagePackageVersionsCentrally=true and defining all 7 package versions alphabetically |
| QuickJson.csproj | Removed Version attribute from CSharpier.MsBuild package reference while preserving PrivateAssets |
| QuickJson.Tests.csproj | Removed Version attributes from all 7 package references while preserving PrivateAssets attributes |
| QuickJson.sln | Added Directory.Packages.props as a solution item under the Misc folder |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Welcome to Codecov 🎉Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests. Thanks for integrating Codecov - We've got you covered ☂️ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Moves package version management from per-project
Version="..."attributes to NuGet's Centralized Package Management, establishing a single source of truth for all dependency versions.Changes
Directory.Packages.props(new) — enables CPM withManagePackageVersionsCentrally=true; declares all 7 packages alphabetically:QuickJson.csproj/QuickJson.Tests.csproj—Versionattributes stripped from all<PackageReference>elements; all other attributes (PrivateAssets, etc.) preservedQuickJson.sln—Directory.Packages.propsadded as a solution item under the existingMiscfolderNo version conflicts —
CSharpier.MsBuildappears in both projects at the same version (1.1.2).Original prompt
This pull request was created from Copilot chat.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.