Skip to content

Update to .NET 11 and latest dependencies - #4

Merged
ardalis merged 1 commit into
mainfrom
net11-upgrade
Nov 25, 2026
Merged

ardalis merged 1 commit into
mainfrom
net11-upgrade

Conversation

@ardalis

@ardalis ardalis commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Summary

Retargets NimblePros.SharedKernel to net11.0 and updates all dependencies to their latest stable versions.

Target framework

  • Directory.Build.props: net8.0 → net11.0
  • Package version bumped 3.1.0 → 4.0.0 (TFM change plus major-version dependency updates)

Library dependencies

Package Old New
Ardalis.GuardClauses 5.0.0 6.0.0
Ardalis.Specification 8.0.0 10.0.0
Mediator.Abstractions / SourceGenerator 3.0.1 3.0.2
Microsoft.Extensions.Logging.Abstractions 8.0.2 removed

Microsoft.Extensions.Logging.Abstractions is now provided by the net11.0 framework, so restore fails with NU1510 under TreatWarningsAsErrors. I removed the explicit reference.

Test dependencies

Package Old New
Microsoft.NET.Test.Sdk 17.11.1 18.12.0
coverlet.collector 6.0.2 10.1.1
AwesomeAssertions 9.2.0 9.6.0
Moq 4.20.72 4.21.0
xunit 2.9.2 2.9.3
xunit.runner.visualstudio 2.8.2 4.0.1
Shouldly 4.3.0 4.3.0 (latest stable)

Mediator.SourceGenerator 3.0.1 pulled in a vulnerable transitive Scriban 6.2.0 (NU1902/3/4, including a critical advisory). 3.0.2 fixes that, and dotnet list package --vulnerable --include-transitive is now clean.

CI / publish workflows

  • SDK 10.0.x → 11.0.x
  • actions/checkout v3/v4 → v7, actions/setup-dotnet v4 → v6

Not included

  • Migrating tests from xunit v2 to xunit.v3. That is a larger change and can go in its own PR.
  • Shouldly 5.0 is still prerelease.

Test plan

  • dotnet build -c Release succeeds with no warnings (TreatWarningsAsErrors)
  • dotnet test: 10/10 tests pass on net11.0
  • No vulnerable packages, including transitive ones
  • CI green

🤖 Generated with Claude Code

- Target net11.0
- Ardalis.GuardClauses 6.0.0, Ardalis.Specification 10.0.0, Mediator 3.0.2
- Test packages: Microsoft.NET.Test.Sdk 18.12.0, coverlet.collector 10.1.1,
  AwesomeAssertions 9.6.0, Moq 4.21.0, xunit 2.9.3, xunit.runner.visualstudio 4.0.1
- Remove Microsoft.Extensions.Logging.Abstractions reference (NU1510: provided by net11.0)
- CI/publish workflows: .NET 11 SDK, actions/checkout v7, actions/setup-dotnet v6
- Bump package version to 4.0.0

Co-Authored-By: Claude Opus 5.5 <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