Migrate to Centralized NuGet Package Management (CPM)#21
Conversation
Co-authored-by: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
This PR migrates the JsonExtensions repository from per-project package version management to Centralized NuGet Package Management (CPM), following the NuGet CPM pattern. The migration consolidates all 12 package versions into a root-level Directory.Packages.props file, removing version attributes from individual project files while preserving all other package reference attributes.
Changes:
- Created
Directory.Packages.propswith centralized version management for all 12 NuGet packages - Removed
Versionattributes from all<PackageReference>elements in both project files - 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 1 comment.
| File | Description |
|---|---|
| Directory.Packages.props | New file defining centralized package versions with ManagePackageVersionsCentrally enabled |
| JsonExtensions/JsonExtensions.csproj | Removed version attributes from 6 package references while preserving PrivateAssets and Condition attributes |
| JsonExtensions.Tests/JsonExtensions.Tests.csproj | Removed version attributes from 7 test-related package references while preserving PrivateAssets attributes |
| JsonExtensions.sln | Added Directory.Packages.props to the Misc solution folder for IDE visibility |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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 ☂️ |
Consolidates all NuGet package versions into a single
Directory.Packages.propsfile using NuGet CPM, eliminating per-projectVersionattributes.Changes
Directory.Packages.props(new) — root-level file withManagePackageVersionsCentrally=trueand alphabetically sorted<PackageVersion>entries for all 12 packagesJsonExtensions.csproj/JsonExtensions.Tests.csproj—Version="..."removed from all<PackageReference>elements; all other attributes (PrivateAssets,Condition) preserved unchangedJsonExtensions.sln—Directory.Packages.propsadded as a solution item under the existingMiscfolderBefore:
After (version now in
Directory.Packages.props):No version conflicts across projects —
CSharpier.MsBuildappears in both at1.2.1.Original prompt
This pull request was created from Copilot chat.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.