Skip to content

Conversation

@martincostello
Copy link
Member

@martincostello martincostello commented Feb 26, 2025

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

Changes include:

  • Build with the .NET 10 SDK.
  • Add net10.0 to the test projects.
  • Use C# 14 features where relevant.
  • Use Cake.Sdk.

@martincostello martincostello added dependencies Pull requests that update a dependency file .NET Pull requests that update .NET code labels Feb 26, 2025
@codecov
Copy link

codecov bot commented Feb 26, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.15%. Comparing base (c758dbc) to head (e7efbc5).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2531   +/-   ##
=======================================
  Coverage   96.15%   96.15%           
=======================================
  Files         309      309           
  Lines        7127     7128    +1     
  Branches     1005     1005           
=======================================
+ Hits         6853     6854    +1     
  Misses        221      221           
  Partials       53       53           
Flag Coverage Δ
linux 96.15% <100.00%> (+<0.01%) ⬆️
macos 96.15% <100.00%> (+<0.01%) ⬆️
windows 96.14% <100.00%> (+<0.01%) ⬆️

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 that referenced this pull request Feb 27, 2025
Remove explicit reference to System.Text.Json as it should be redundant.

Identified by #2531.
martincostello added a commit that referenced this pull request Feb 27, 2025
Remove explicit reference to System.Text.Json as it should be redundant.

Identified by #2531.
martincostello added a commit that referenced this pull request May 16, 2025
Fix more IDE0055 warnings from #2531.
@martincostello martincostello force-pushed the dotnet-vnext branch 2 times, most recently from 2e22949 to e8b0126 Compare May 20, 2025 11:20
@martincostello martincostello force-pushed the dotnet-vnext branch 2 times, most recently from 847e149 to 20768ae Compare June 11, 2025 13:07
martincostello added a commit that referenced this pull request Jul 22, 2025
Cherry-pick changes from #2531 to sort package versions and add new references.
@martincostello martincostello mentioned this pull request Jul 22, 2025
martincostello added a commit that referenced this pull request Jul 22, 2025
Cherry-pick changes from #2531 to sort package versions and add new references.
@martincostello martincostello force-pushed the dotnet-vnext branch 2 times, most recently from 83c93f8 to f05acbd Compare July 24, 2025 14:10
@martincostello martincostello force-pushed the dotnet-vnext branch 3 times, most recently from 0d6763c to 0b3d12b Compare August 12, 2025 17:19
martincostello and others added 9 commits October 16, 2025 10:28
Use `LangVersion=preview` to fix stryker compilation.
Doesn't actually fix stryker.
Update to the latest pre-release of v5.
Update to the latest prerelease.
Use `language-version:Preview` to fix mutation tests where the new `field` keyword is used.
Update .NET SDK to version 10.0.100-rc.2.25502.107.

---
updated-dependencies:
- dependency-name: Microsoft.NET.Sdk
  dependency-version: 10.0.100-rc.2.25502.107
  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 10 RC2.
- Disable strong naming.
- Fix nullability warnings.
- Fix analyzer warnings.
See if applying workaround for issue fixes them.
Update mutation tests to use .NET 10.
Update to latest beta version.
Fix build due to conflicting reference from Cake.Sdk.
Update to the stable version of .NET 10.
@martincostello
Copy link
Member Author

Depends on stryker-mutator/stryker-net#3327.

martincostello added a commit that referenced this pull request Nov 20, 2025
Suppress IDE0032 until Stryker supports .NET 10 and C# 14 and #2531 can be merged.
martincostello added a commit that referenced this pull request Nov 20, 2025
* Update .NET SDK

Update .NET SDK to version 9.0.308.

---
updated-dependencies:
- dependency-name: Microsoft.NET.Sdk
  dependency-version: 9.0.308
  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>

* Suppress IDE0032

Suppress IDE0032 until Stryker supports .NET 10 and C# 14 and #2531 can be merged.

* Fix mutation tests

Try to prevent stryker from rolling forward to the .NET 10 SDK.

---------

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>
Co-authored-by: Martin Costello <martin@martincostello.com>
martincostello added a commit that referenced this pull request Dec 4, 2025
Cherrypick some changes from #2531 while that is blocked on a new release of Stryker that supports .NET 10 GA.
martincostello added a commit that referenced this pull request Dec 4, 2025
Cherrypick some changes from #2531 while that is blocked on a new release of Stryker that supports .NET 10 GA.
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.

2 participants