Implement Central Package Management (CPM)#3520
Merged
Merged
Conversation
Fixes on top of #3508 (Central Package Management): - Restore Verify.MSTest to 31.19.1; the central file inadvertently downgraded it from the version on develop. - Add a root nuget.config with package source mapping. Without it, CPM raises NU1507 on any machine with more than one NuGet feed configured, which becomes a restore error in projects that treat warnings as errors. - Remove the central BenchmarkDotNet.Diagnostics.Windows entry; its only consumer (CrossVersionBenchmarks) opts out of CPM. - Remove the now-redundant MSTest.TestFramework Update item in Hl7.Fhir.Support.Tests. - Revert BOM/whitespace-only churn so the diff only contains meaningful changes. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
andrzejskowronski
approved these changes
Jun 12, 2026
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.
Description
Introduces Central Package Management: all NuGet package versions are now declared once in a root
Directory.Packages.props, and the individual projects reference packages without version attributes.This builds on #3508 by @granadacoder (his commits are included here) and addresses the review findings on that PR:
nuget.configwith package source mapping. Without it, CPM raises NU1507 on any machine with more than one NuGet feed configured, which becomes a hard restore error in the projects that treat warnings as errors. CI agents typically have a single feed, so CI alone would not have caught this. Note: the mapping pins this repo to nuget.org — ifuseGitHubPackageFeedis ever flipped toyesin the pipeline, a mapping for the FirelyTeam feed must be added.BenchmarkDotNet.Diagnostics.Windowsentry — its only consumer (CrossVersionBenchmarks) opts out of CPM, since it references multiple versions of the same package for cross-version benchmarking.MSTest.TestFrameworkUpdate item inHl7.Fhir.Support.Tests.Supersedes #3508.
Related issues
None.
Testing
dotnet restoreon a machine with multiple NuGet feeds configured (the scenario that previously failed): succeeds with zero warnings.dotnet restore --source https://api.nuget.org/v3/index.json(the pipeline''s restore command): succeeds.Hl7.Fhir.Support.Tests: 501/501 passed, confirming centrally-managed test packages resolve correctly.This is a build improvement, not a functionality change.
FirelyTeam Checklist
🤖 Generated with Claude Code