Migrate to Centralized NuGet Package Management (CPM)#61
Conversation
Co-authored-by: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com>
|
@copilot please add the new props file to sln |
Co-authored-by: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com>
Done — added |
There was a problem hiding this comment.
Pull request overview
This pull request migrates the repository to NuGet's Centralized Package Management (CPM) pattern, consolidating all package version definitions from individual .csproj files into a single Directory.Packages.props file at the repository root. This change improves maintainability by ensuring consistent package versions across all projects and providing a single source of truth for dependency versions.
Changes:
- Created
Directory.Packages.propswithManagePackageVersionsCentrallyenabled and all 12 package versions defined alphabetically - Removed
Versionattributes from all<PackageReference>elements across 4.csprojfiles while preserving other attributes likePrivateAssetsandExcludeAssets
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| Directory.Packages.props | New file defining centralized versions for all 12 NuGet packages used across the solution |
| GitHubActionsTestLogger/GitHubActionsTestLogger.csproj | Removed Version attributes from 6 package references, preserved PrivateAssets and ExcludeAssets attributes |
| GitHubActionsTestLogger.Tests/GitHubActionsTestLogger.Tests.csproj | Removed Version attributes from 7 package references, preserved PrivateAssets attributes |
| GitHubActionsTestLogger.Demo.VsTest/GitHubActionsTestLogger.Demo.VsTest.csproj | Removed Version attributes from 2 package references, preserved PrivateAssets attributes |
| GitHubActionsTestLogger.Demo.Mtp/GitHubActionsTestLogger.Demo.Mtp.csproj | Removed Version attributes from 3 package references, preserved PrivateAssets attributes |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Directory.Packages.propswith centralized package versions (sorted alphabetically)Version="..."attributes from all.csprojfilesDirectory.Packages.propsto the solution's Misc folderOriginal 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.