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.
Updated [GitHubActionsTestLogger](https://github.com/Tyrrrz/GitHubActionsTestLogger) from 3.0.1 to 3.0.2. <details> <summary>Release notes</summary> _Sourced from [GitHubActionsTestLogger's releases](https://github.com/Tyrrrz/GitHubActionsTestLogger/releases)._ ## 3.0.2 ## What's Changed * Bump the nuget group with 4 updates by @dependabot[bot] in Tyrrrz/GitHubActionsTestLogger#59 * Bump the nuget group with 1 update by @dependabot[bot] in Tyrrrz/GitHubActionsTestLogger#60 * Migrate to Centralized NuGet Package Management (CPM) by @Copilot in Tyrrrz/GitHubActionsTestLogger#61 * Use range indexer in `SubstringAfterLast` by @Copilot in Tyrrrz/GitHubActionsTestLogger#62 * Bump the nuget group with 7 updates by @dependabot[bot] in Tyrrrz/GitHubActionsTestLogger#63 * Fix build errors from obsolete MTP API usage by @Copilot in Tyrrrz/GitHubActionsTestLogger#64 * Remove explicit Microsoft.SourceLink.GitHub package reference by @Copilot in Tyrrrz/GitHubActionsTestLogger#65 * Add strong naming by @mgravell in Tyrrrz/GitHubActionsTestLogger#67 ## New Contributors * @Copilot made their first contribution in Tyrrrz/GitHubActionsTestLogger#61 * @mgravell made their first contribution in Tyrrrz/GitHubActionsTestLogger#67 **Full Changelog**: Tyrrrz/GitHubActionsTestLogger@3.0.1...3.0.2 Commits viewable in [compare view](Tyrrrz/GitHubActionsTestLogger@3.0.1...3.0.2). </details> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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.