Migrate to Centralized NuGet Package Management (CPM)#30
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
Contributor
There was a problem hiding this comment.
Pull request overview
Migrates the solution to NuGet Central Package Management (CPM) by centralizing all package versions in a root Directory.Packages.props, keeping project files free of per-reference versions and making the CPM file visible in the solution.
Changes:
- Add root
Directory.Packages.propsenabling CPM and defining all package versions. - Remove
Version="..."attributes from all<PackageReference>entries across projects. - Add
Directory.Packages.propstoRessy.slnsolution items.
Reviewed changes
Copilot reviewed 6 out of 10 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| Directory.Packages.props | Introduces centralized package version declarations and enables CPM. |
| Ressy/Ressy.csproj | Removes per-package Version attributes to defer to CPM. |
| Ressy.Tests/Ressy.Tests.csproj | Removes per-package Version attributes to defer to CPM. |
| Ressy.Tests.Dummy/Ressy.Tests.Dummy.csproj | Removes per-package Version attributes to defer to CPM. |
| Ressy.Demo/Ressy.Demo.csproj | Removes per-package Version attributes to defer to CPM. |
| Ressy.sln | Adds Directory.Packages.props as a solution item under Misc. |
| Ressy/Versions/VersionExtensions.cs | Whitespace-only formatting adjustment. |
| Ressy/Strings/StringTableExtensions.cs | Whitespace-only formatting adjustment. |
| Ressy/Manifests/ManifestExtensions.cs | Whitespace-only formatting adjustment. |
| Ressy/Icons/IconExtensions.cs | Whitespace-only formatting adjustment. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #30 +/- ##
=======================================
Coverage 83.49% 83.49%
=======================================
Files 36 36
Lines 1509 1509
Branches 232 232
=======================================
Hits 1260 1260
Misses 160 160
Partials 89 89 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
Migrates package version management from per-project
Versionattributes to NuGet's Centralized Package Management, consolidating all versions into a single source of truth.Changes
Directory.Packages.props(new): Enables CPM via<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>; declares all 11 package versions alphabetically.csprojfiles: RemovedVersion="..."from every<PackageReference>— all other attributes (PrivateAssets, etc.) preservedRessy.sln: AddedDirectory.Packages.propsas a solution item underMiscBefore:
After (
Directory.Packages.props):After (
.csproj):No packages had conflicting versions across projects.
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.