Skip to content

Switch to NuGet Central Package Management#4126

Merged
jeremydmiller merged 1 commit intomasterfrom
centralized-nugets
Feb 11, 2026
Merged

Switch to NuGet Central Package Management#4126
jeremydmiller merged 1 commit intomasterfrom
centralized-nugets

Conversation

@jeremydmiller
Copy link
Member

Summary

  • Centralizes all NuGet package versions into a single root Directory.Packages.props file with ManagePackageVersionsCentrally=true
  • Removes Version attributes from all PackageReference elements across 30+ csproj and props files
  • Standardizes conflicting package versions to the highest version (e.g., xunit 2.9.3, NSubstitute 5.3.0, Shouldly 4.3.0, Microsoft.NET.Test.Sdk 18.0.1)
  • Preserves framework-conditional versions for Microsoft.Extensions.Hosting.Abstractions and Microsoft.Extensions.Diagnostics.HealthChecks (net8.0/net9.0/net10.0)

Test plan

  • dotnet restore src/Marten.sln succeeds
  • dotnet build src/Marten.sln succeeds with 0 errors
  • Verified no remaining Version attributes on any PackageReference in csproj or props files
  • Confirmed Helpdesk sample solution failures are pre-existing (identical errors on master)
  • CI pipeline passes

🤖 Generated with Claude Code

Centralize all package versions into a root Directory.Packages.props file,
eliminating version inconsistencies across 30+ project files and simplifying
future dependency upgrades.

- Create root Directory.Packages.props with ManagePackageVersionsCentrally=true
- Remove src/Directory.Packages.props that was disabling CPM
- Remove Version attributes from all PackageReference elements in csproj/props files
- Standardize conflicting versions to highest (xunit 2.9.3, NSubstitute 5.3.0,
  Shouldly 4.3.0, Microsoft.NET.Test.Sdk 18.0.1, etc.)
- Preserve framework-conditional versions for Microsoft.Extensions.* packages

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant