Skip to content

Update to .NET 11 SDK - #2931

Draft
martincostello wants to merge 62 commits into
mainfrom
dotnet-vnext
Draft

martincostello wants to merge 62 commits into
mainfrom
dotnet-vnext

Conversation

@martincostello

Copy link
Copy Markdown
Member

Update to build and test with .NET 11. net11.0 is explicitly not being added as a new TFM for the packages we ship to NuGet.org.

Changes include:

  • Build with the .NET 11 SDK.
  • Add net11.0 to the test projects.
  • Drop net8.0 and net9.0 from the test projects.
  • Use C# 15 features where relevant.

@martincostello martincostello added dependencies Pull requests that update a dependency file .NET Pull requests that update .NET code keep-open Prevents an issue or pull request from being marked as stale labels Feb 13, 2026
@codecov

codecov Bot commented Feb 13, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.04%. Comparing base (289f298) to head (1e37f63).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2931   +/-   ##
=======================================
  Coverage   98.04%   98.04%           
=======================================
  Files         321      321           
  Lines        7148     7148           
  Branches     1105     1105           
=======================================
  Hits         7008     7008           
  Misses         98       98           
  Partials       42       42           
Flag Coverage Δ
linux 97.98% <100.00%> (-0.05%) ⬇️
macos 98.03% <100.00%> (-0.01%) ⬇️
windows 98.04% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

- Build with the .NET 11 preview 1 SDK.
- Test with `net11.0`.
- Drop testing with `net8.0` and `net9.0`.
- Fix new code analysis warnings.
Update .NET SDK to version 11.0.100-preview.2.26159.112.

---
updated-dependencies:
- dependency-name: Microsoft.NET.Sdk
  dependency-version: 11.0.100-preview.2.26159.112
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: polly-updater-bot[bot] <138034000+polly-updater-bot[bot]@users.noreply.github.com>
Co-authored-by: polly-updater-bot[bot] <138034000+polly-updater-bot[bot]@users.noreply.github.com>
Comment thread Directory.Packages.props Resolved
Comment thread Directory.Packages.props Resolved
Comment thread Directory.Packages.props Resolved
Comment thread eng/stryker-config.json Resolved
Comment thread eng/stryker-config.json Resolved
Stryker errors for any unknown properties.
@martincostello

Copy link
Copy Markdown
Member Author

Failure on Linux is dotnet/runtime#125435.

Work around issue with newer versions of Clang.
Comment thread test/Polly.AotTest/Polly.AotTest.csproj Resolved
martincostello and others added 7 commits March 12, 2026 14:53
Only apply native AoT workaround on Linux.
Update .NET SDK to version 11.0.100-preview.3.26207.106.

---
updated-dependencies:
- dependency-name: Microsoft.NET.Sdk
  dependency-version: 11.0.100-preview.3.26207.106
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: polly-updater-bot[bot] <138034000+polly-updater-bot[bot]@users.noreply.github.com>
Co-authored-by: polly-updater-bot[bot] <138034000+polly-updater-bot[bot]@users.noreply.github.com>
- Update NuGet packages for preview 3.
- Fix CS8629 warnings from `Nullable<T>.Value` usage.
Comment thread test/Polly.AotTest/Polly.AotTest.csproj Resolved
Remove workaround for Linux issue that should be fixed in .NET 11 preview 3.
martincostello added a commit that referenced this pull request Apr 14, 2026
Cherry-pick fix from #2931 for new compiler warning when accessing `Nullable<T>.Value`.
Update to release candidate 1 of .NET 11.
Enable `DeterministicTimestamp` by default, as it becomes opt-out by default in .NET 11 RC1.
Use Preview for C# 15 features.
Fix new IDE0028 warnings.
Remove now-duplicate `--results-directory` argument.
Add missing patch coverage.
martincostello added a commit that referenced this pull request Sep 11, 2026
Cherry-pick changes from #2931 to enable new features and improve coverage.
Comment thread eng/Test.targets Resolved
martincostello added a commit that referenced this pull request Oct 24, 2026
- Write test results to dedicated directory if specified.
- Extend test coverage.

Cherry-picked from #2931.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file keep-open Prevents an issue or pull request from being marked as stale .NET Pull requests that update .NET code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant