Skip to content

.NET 11 preparation#2932

Merged
martincostello merged 1 commit intomainfrom
dotnet-11-prep
Feb 13, 2026
Merged

.NET 11 preparation#2932
martincostello merged 1 commit intomainfrom
dotnet-11-prep

Conversation

@martincostello
Copy link
Copy Markdown
Member

  • Update F# and VB examples from .NET 9 to .NET 10.
  • Suppress new code analysis warnings.
  • Use primary constructor.

- Update F# and VB examples from .NET 9 to .NET 10.
- Suppress new code analysis warnings.
- Use primary constructor.
Copilot AI review requested due to automatic review settings February 13, 2026 17:18
@martincostello martincostello enabled auto-merge (squash) February 13, 2026 17:18
Copy link
Copy Markdown

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

Prepares the repository for newer .NET SDK/analyzer behavior by updating sample target frameworks, adjusting analyzer suppressions, and adopting a C# primary-constructor pattern in benchmarks.

Changes:

  • Bump F# and VB sample projects from net9.0 to net10.0.
  • Suppress new analyzer warnings (project-level CA1510; CA1010/CA1710 around Context dictionary implementation).
  • Refactor benchmark cache provider to use a primary constructor.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
test/Polly.Specs/Helpers/Caching/StubSerialized.cs Doc comment punctuation tweak in test helper.
src/Polly/Polly.csproj Adds CA1510 to global NoWarn list.
src/Polly/Context.Dictionary.cs Adds targeted pragma suppression for CA1010/CA1710 on Context dictionary partial.
samples/Intro.VisualBasic/Intro.VisualBasic.vbproj Updates sample TFM to net10.0.
samples/Intro.FSharp/Intro.FSharp.fsproj Updates sample TFM to net10.0.
bench/Polly.Benchmarks/Cache.cs Uses a primary constructor for the benchmark cache provider.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codecov
Copy link
Copy Markdown

codecov bot commented Feb 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.15%. Comparing base (49967c3) to head (79ebe4a).
⚠️ Report is 1 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2932   +/-   ##
=======================================
  Coverage   96.15%   96.15%           
=======================================
  Files         309      309           
  Lines        7128     7128           
  Branches     1005     1005           
=======================================
  Hits         6854     6854           
  Misses        221      221           
  Partials       53       53           
Flag Coverage Δ
linux 96.15% <ø> (ø)
macos 96.15% <ø> (ø)
windows 96.14% <ø> (ø)

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

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

@martincostello martincostello merged commit de3067c into main Feb 13, 2026
40 of 41 checks passed
@martincostello martincostello deleted the dotnet-11-prep branch February 13, 2026 18:11
This was referenced Mar 4, 2026
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.

2 participants