Skip to content

Migrate to NuGet Central Package Management (CPM)#9

Merged
casuffitsharp merged 2 commits intomainfrom
copilot/migrate-projects-to-cpm
Mar 1, 2026
Merged

Migrate to NuGet Central Package Management (CPM)#9
casuffitsharp merged 2 commits intomainfrom
copilot/migrate-projects-to-cpm

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 1, 2026

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 with ManagePackageVersionsCentrally=true — single source of truth for all 10 dependencies
  • *.csproj files: Stripped Version attributes from all PackageReference elements; versions now resolved from Directory.Packages.props

Version unification

SonarAnalyzer.CSharp had diverged between projects (10.12.0.118525 in ProcSim, 10.19.0.132793 in ProcSim.Core). Unified to 10.19.0.132793.

<!-- Before (per-project) -->
<PackageReference Include="MaterialDesignThemes" Version="5.2.1" />

<!-- After (Directory.Packages.props) -->
<PackageVersion Include="MaterialDesignThemes" Version="5.2.1" />

<!-- After (*.csproj) -->
<PackageReference Include="MaterialDesignThemes" />

🔒 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.

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 casuffitsharp marked this pull request as ready for review March 1, 2026 01:49
Copilot AI review requested due to automatic review settings March 1, 2026 01:49
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.props at the repo root with ManagePackageVersionsCentrally=true and all 10 PackageVersion entries.
  • Removes Version attributes from all PackageReference elements in both .csproj files.
  • Unifies the diverged SonarAnalyzer.CSharp version (was 10.12.0.118525 in ProcSim, 10.19.0.132793 in ProcSim.Core) to the newer 10.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.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@casuffitsharp casuffitsharp merged commit ec77660 into main Mar 1, 2026
13 checks passed
@casuffitsharp casuffitsharp deleted the copilot/migrate-projects-to-cpm branch March 1, 2026 01:54
@casuffitsharp casuffitsharp added enhancement New feature or request refactor chore and removed enhancement New feature or request refactor labels Mar 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants