Skip to content

Conversation

@costellobot
Copy link
Collaborator

@costellobot costellobot commented Feb 25, 2025

Summary 🚀

Update to .NET 10.

Changes 📝

  • Update .NET SDK to 10.0.100
  • Update target framework to net10.0
  • Update NuGet package versions for .NET 10.0
  • Bump version to 0.7.0.

Further Reading 📖

🤖 This pull request was generated by GitHub Actions using .NET Bumper.

@costellobot costellobot added .NET Pull requests that update .net code dependencies Pull requests that update a dependency file enhancement New feature or request labels Feb 25, 2025
@codecov
Copy link

codecov bot commented Feb 25, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.59%. Comparing base (adb14e4) to head (9e421ec).
⚠️ Report is 1 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #858   +/-   ##
=======================================
  Coverage   98.59%   98.59%           
=======================================
  Files          16       16           
  Lines         284      284           
  Branches       37       37           
=======================================
  Hits          280      280           
  Misses          2        2           
  Partials        2        2           
Flag Coverage Δ
linux 98.59% <ø> (ø)
macos 98.59% <ø> (+0.70%) ⬆️
windows 98.59% <ø> (ø)

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 force-pushed the dotnet-vnext branch 2 times, most recently from f08745a to 4fc08c4 Compare April 8, 2025 21:17
@martincostello martincostello force-pushed the dotnet-vnext branch 2 times, most recently from 3b354bf to c883ebf Compare April 18, 2025 14:14
@martincostello
Copy link
Owner

@costellobot rebase

@martincostello martincostello force-pushed the dotnet-vnext branch 3 times, most recently from 107cb84 to 5912c16 Compare May 16, 2025 04:11
@martincostello martincostello force-pushed the dotnet-vnext branch 2 times, most recently from e47e770 to a0a24e0 Compare June 16, 2025 13:25
@martincostello martincostello force-pushed the dotnet-vnext branch 4 times, most recently from 6bb5cdb to 6fecff1 Compare July 15, 2025 18:14
@martincostello
Copy link
Owner

@costellobot rebase

@martincostello martincostello force-pushed the dotnet-vnext branch 2 times, most recently from 6bfb6b3 to 378ae3f Compare August 5, 2025 19:42
@martincostello martincostello force-pushed the dotnet-vnext branch 2 times, most recently from bb408bc to b6a1f9b Compare September 9, 2025 16:41
martincostello and others added 5 commits November 11, 2025 11:39
Update NuGet packages for .NET 10 preview 7.
Update .NET SDK to version 10.0.100-rc.1.25451.107.

---
updated-dependencies:
- dependency-name: Microsoft.NET.Sdk
  dependency-version: 10.0.100-rc.1.25451.107
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: costellobot <[email protected]>
Update NuGet packages for .NET 10 RC1.
Use C# 14 extension-everything to polyfill `ArgumentNullException.ThrowIfNull()`.
* Update .NET SDK

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: costellobot <[email protected]>

* Bump .NET NuGet packages

Bumps .NET dependencies to their latest versions for the .NET 10.0.100-rc.2.25502.107 SDK.

Bumps Microsoft.AspNetCore.Mvc.Testing from 10.0.0-rc.1.25451.107 to 10.0.0-rc.2.25502.107.
Bumps Microsoft.Extensions.Logging from 10.0.0-rc.1.25451.107 to 10.0.0-rc.2.25502.107.

---
updated-dependencies:
- dependency-name: Microsoft.AspNetCore.Mvc.Testing
  dependency-version: 10.0.0-rc.2.25502.107
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: Microsoft.Extensions.Logging
  dependency-version: 10.0.0-rc.2.25502.107
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: costellobot <[email protected]>

* Fix package references

Updates for .NET 10 RC2.

---------

Signed-off-by: costellobot <[email protected]>
Co-authored-by: Martin Costello <[email protected]>
- Update to the stable release of .NET 10.
- Bump version to 0.7.0.
No longer needed.
@martincostello martincostello marked this pull request as ready for review November 11, 2025 13:12
Copilot AI review requested due to automatic review settings November 11, 2025 13:12
@martincostello martincostello enabled auto-merge (squash) November 11, 2025 13:12
Copilot finished reviewing on behalf of martincostello November 11, 2025 13:13
@martincostello martincostello merged commit 811c12a into main Nov 11, 2025
20 checks passed
Copy link

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

This PR updates the project from .NET 9 to .NET 10, including SDK version, target frameworks, and package dependencies.

  • Updated .NET SDK to version 10.0.100 and bumped project version to 0.7.0
  • Added net10.0 as a target framework to library projects and updated test projects to net10.0
  • Removed legacy #if NET/#else preprocessor directives since .NET 10 always has ArgumentNullException.ThrowIfNull available

Reviewed Changes

Copilot reviewed 17 out of 17 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
global.json Updated SDK version from 9.0.306 to 10.0.100
Directory.Build.props Bumped assembly and package versions to 0.7.0
Directory.Packages.props Updated Microsoft package versions to 10.0.0
.vsconfig Updated Visual Studio component to .NET 10 runtime
src/Logging.XUnit/MartinCostello.Logging.XUnit.csproj Added net10.0 target framework and conditional package reference
src/Logging.XUnit.v3/MartinCostello.Logging.XUnit.v3.csproj Added net10.0 target framework and conditional package reference
tests/SampleApp/SampleApp.csproj Updated target framework to net10.0
tests/Logging.XUnit.Tests/MartinCostello.Logging.XUnit.Tests.csproj Updated target framework to net10.0
tests/Logging.XUnit.v3.Tests/MartinCostello.Logging.XUnit.v3.Tests.csproj Updated target framework to net10.0
src/Shared/StringSyntaxAttribute.cs Updated preprocessor directive from NETSTANDARD || !NETCOREAPP to NETFRAMEWORK || NETSTANDARD
src/Shared/CallerArgumentExpressionAttribute.cs Added polyfill for older target frameworks
src/Shared/ArgumentNullExceptionExtensions.cs Added extension method polyfill with syntax error
src/Shared/XUnitLoggerExtensions.ITestOutputHelper.cs Removed legacy #if NET/#else blocks for null checking
src/Shared/XUnitLoggerExtensions.IMessageSink.cs Removed legacy #if NET/#else` blocks for null checking
src/Shared/XUnitLogger.cs Removed legacy #if NET/#else blocks for null checking
src/Shared/ITestOutputHelperExtensions.cs Removed legacy #if NET/#else blocks for null checking
src/Shared/IMessageSinkExtensions.cs Removed legacy #if NET/#else blocks for null checking

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

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 enhancement New feature or request .NET Pull requests that update .net code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants