Migrate to NuGet Central Package Management (CPM)#9
Merged
casuffitsharp merged 2 commits intomainfrom Mar 1, 2026
Merged
Conversation
Co-authored-by: casuffitsharp <78829483+casuffitsharp@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Migrate projects to CPM
Migrate to NuGet Central Package Management (CPM)
Mar 1, 2026
casuffitsharp
approved these changes
Mar 1, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR migrates the solution to NuGet Central Package Management (CPM), eliminating scattered per-project version declarations and creating a single source of truth for all dependency versions.
Changes:
- Adds
Directory.Packages.propsat the repo root withManagePackageVersionsCentrally=trueand all 10PackageVersionentries. - Removes
Versionattributes from allPackageReferenceelements in both.csprojfiles. - Unifies the diverged
SonarAnalyzer.CSharpversion (was10.12.0.118525inProcSim,10.19.0.132793inProcSim.Core) to the newer10.19.0.132793.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
Directory.Packages.props |
New central version registry; enables CPM and defines all 10 package versions |
src/ProcSim/ProcSim.csproj |
Stripped Version from all 10 PackageReference elements |
src/ProcSim.Core/ProcSim.Core.csproj |
Stripped Version from the single PackageReference element |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Contributor
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Centralizes NuGet package version management using CPM to eliminate version duplication across project files.
Changes
Directory.Packages.props(new): Central version registry at the repo root withManagePackageVersionsCentrally=true— single source of truth for all 10 dependencies*.csprojfiles: StrippedVersionattributes from allPackageReferenceelements; versions now resolved fromDirectory.Packages.propsVersion unification
SonarAnalyzer.CSharphad diverged between projects (10.12.0.118525inProcSim,10.19.0.132793inProcSim.Core). Unified to10.19.0.132793.🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.