Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to .NET 9 SDK #2003

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from
Draft

Update to .NET 9 SDK #2003

wants to merge 9 commits into from

Conversation

martincostello
Copy link
Member

@martincostello martincostello commented Mar 1, 2024

A long-lived PR for testing .NET 9 until the stable release in November 2024. net9.0 is explicitly not being added as a new TFM for the packages we ship to NuGet.org (at least for now).

Changes include:

  • Update to the .NET 9 SDK.
  • Target net8.0 and net9.0 in tests, samples and benchmarks.
  • Remove net6.0 target from tests, samples and benchmarks as it will both be out-of-support by November 2024.
  • Fix IDE0022 warning.

@martincostello martincostello added dependencies Pull requests that update a dependency file .NET Pull requests that update .NET code labels Mar 1, 2024
martincostello added a commit to martincostello/Polly that referenced this pull request Mar 1, 2024
- Fix CA1849 warning from updating snippets to .NET 8.
- Fix IDE0034 warning identified by the .NET 9 SDK in App-vNext#2003.
martincostello added a commit that referenced this pull request Mar 1, 2024
- Update various sample projects from `net7.0` to `net8.0`.
- Fix CA1849 warning from updating snippets to .NET 8.
- Fix IDE0034 warning identified by the .NET 9 SDK in #2003.
Copy link

codecov bot commented Mar 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.32%. Comparing base (0d925bc) to head (7b6aa5a).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2003      +/-   ##
==========================================
- Coverage   85.38%   85.32%   -0.07%     
==========================================
  Files         313      312       -1     
  Lines        7457     7439      -18     
  Branches     1124     1120       -4     
==========================================
- Hits         6367     6347      -20     
- Misses        745      746       +1     
- Partials      345      346       +1     
Flag Coverage Δ
linux 85.32% <ø> (-0.04%) ⬇️
macos 85.32% <ø> (-0.07%) ⬇️
windows 85.32% <ø> (-0.04%) ⬇️

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 added a commit to martincostello/Polly that referenced this pull request Apr 12, 2024
Fix IDE0057 warnings identified in App-vNext#2003.
martincostello added a commit that referenced this pull request Apr 12, 2024
Fix IDE0057 warnings identified in #2003.
@martincostello martincostello force-pushed the dotnet-vnext branch 2 times, most recently from bee5858 to eeac2c2 Compare May 15, 2024 11:22
@martincostello martincostello force-pushed the dotnet-vnext branch 2 times, most recently from f18d2e9 to ff96865 Compare May 29, 2024 10:42
- Build with the .NET 9 (preview 6) SDK.
- Add tests TFM for `net9.0`.
- Remove tests for `net6.0` TFM.
- Run workflows on PRs to `dotnet-vnext` branch.
- Only audit direct NuGet dependencies.
- Fix IDE0022 warning.
- Temporarily disable some tests that are failing in GitHub Actions.
Disable TFM parallelism for `dotnet test` in the Polly.Core project on Windows to fix two failing tests.
See https://learn.microsoft.com/dotnet/core/whats-new/dotnet-9/sdk#run-tests-in-parallel.
Set the coverage threshold back to 100%.
polly-updater-bot bot and others added 6 commits September 25, 2024 11:23
Update .NET SDK to version 9.0.100-preview.7.24407.12.

---
updated-dependencies:
- dependency-name: Microsoft.NET.Sdk
  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 .NET 9 preview 7.
Update Microsoft.Extensions.TimeProvider.Testing to .NET 9 preview 7.
Update .NET SDK to version 9.0.100-rc.1.24452.12.

---
updated-dependencies:
- dependency-name: Microsoft.NET.Sdk
  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 RC1.
Update the TimeProvider testing package to preview 8.
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 .NET Pull requests that update .NET code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant