Migrate to Centralized NuGet Package Management (CPM)#82
Merged
Conversation
Co-authored-by: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Migrate repository 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
This pull request successfully migrates the PolyShim repository to NuGet's Centralized Package Management (CPM) pattern, consolidating all package version definitions from individual project files into a single Directory.Packages.props file at the repository root. This provides a single source of truth for dependency versions across the solution.
Changes:
- Created
Directory.Packages.propswith 17 centrally-managed package versions - Removed
Versionattributes from all<PackageReference>elements in both project files while preserving all other attributes - Added
Directory.Packages.propsto the solution's Misc folder for visibility
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| Directory.Packages.props | New file enabling CPM with 17 PackageVersion entries for all dependencies |
| PolyShim/PolyShim.csproj | Removed Version attributes from 19 PackageReference elements; preserved all PrivateAssets and Condition attributes |
| PolyShim.Tests/PolyShim.Tests.csproj | Removed Version attributes from 10 PackageReference elements; preserved all PrivateAssets attributes |
| PolyShim.sln | Added Directory.Packages.props to Misc solution items folder |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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 on<PackageReference>to NuGet's Centralized Package Management, giving a single source of truth for all dependency versions.Changes
Directory.Packages.props(new) — enables CPM with<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>; declares 17<PackageVersion>entries sorted alphabeticallyPolyShim/PolyShim.csproj— strippedVersion="..."from all<PackageReference>elements; allPrivateAssetsandConditionattributes preservedPolyShim.Tests/PolyShim.Tests.csproj— same; allPrivateAssetsattributes preservedPolyShim.sln— addedDirectory.Packages.propsto theMiscsolution items folderBefore / After
No version conflicts across projects — all shared packages already used consistent versions.
Original prompt
This pull request was created from Copilot chat.
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.