-
-
Notifications
You must be signed in to change notification settings - Fork 14
Update to .NET 10 #858
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 10 #858
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
0db44b4 to
d8e5b09
Compare
f08745a to
4fc08c4
Compare
3b354bf to
c883ebf
Compare
|
@costellobot rebase |
107cb84 to
5912c16
Compare
5912c16 to
627d44f
Compare
e47e770 to
a0a24e0
Compare
6bb5cdb to
6fecff1
Compare
6fecff1 to
7abd733
Compare
|
@costellobot rebase |
7abd733 to
b82ca21
Compare
6bfb6b3 to
378ae3f
Compare
bb408bc to
b6a1f9b
Compare
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]>
a1c7587 to
f2ea254
Compare
- Update to the stable release of .NET 10. - Bump version to 0.7.0.
No longer needed.
There was a problem hiding this 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/#elsepreprocessor directives since .NET 10 always hasArgumentNullException.ThrowIfNullavailable
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.
Summary 🚀
Update to .NET 10.
Changes 📝
10.0.100net10.00.7.0.Further Reading 📖
🤖 This pull request was generated by GitHub Actions using .NET Bumper.