Skip to content
This repository was archived by the owner on Nov 10, 2026. It is now read-only.

feat: add support for .NET 10 - #192

Merged
vbreuss merged 2 commits into
mainfrom
topic/support-net-10
May 6, 2026
Merged

vbreuss merged 2 commits into
mainfrom
topic/support-net-10

Conversation

@vbreuss

@vbreuss vbreuss commented May 6, 2026 •

Copy link
Copy Markdown
Member

This pull request updates the project to support .NET 10.0 alongside existing frameworks and modernizes related tooling and configuration. The main changes include updating target frameworks, CI/CD pipeline definitions, and build tooling versions. Additionally, the solution file has been migrated to the .slnx format.

Framework and Build System Updates:

  • Added .NET 10.0 as a target framework for the main library (net10.0 now included in TargetFrameworks in Source/Directory.Build.props and Tests/Directory.Build.props) and for the benchmarks and build projects (Benchmarks/aweXpect.Reflection.Benchmarks.csproj, Pipeline/Build.csproj).
  • Updated the minimum required .NET SDK version to 10.0.100 in documentation and configuration (global.json, .github/copilot-instructions.md).
  • Updated NUKE build and related package dependencies to their latest versions (Nuke.Common and Nuke.Components to 10.1.0, SharpCompress to 0.47.4).

CI/CD Pipeline Changes:

  • Updated all GitHub Actions workflow files to build and test against .NET 10.0 in addition to 8.0 and 9.0 (.github/workflows/build.yml, ci.yml, ci-analysis.yml).

Project and Source Code Adjustments:

  • Updated mutation test and build scripts to target net10.0 and removed explicit Stryker version pinning (Pipeline/Build.MutationTests.cs).
  • Adjusted preprocessor directives in helper code to use #if NET8_0 instead of #if NET8_0_OR_GREATER, ensuring correct async LINQ extension method availability.

Solution File Migration:

  • Replaced the legacy .sln solution file with the new .slnx format and updated build parameters to reference the new file (aweXpect.Reflection.slnx, .nuke/parameters.json).

Documentation:

  • Updated documentation to reflect .NET 10.0 support and usage (.github/copilot-instructions.md).

These changes ensure the project is ready for .NET 10.0, keeps build tooling up to date, and improves CI/CD coverage for the latest .NET features.

@vbreuss vbreuss self-assigned this May 6, 2026
Copilot AI review requested due to automatic review settings May 6, 2026 13:15
@github-actions

github-actions Bot commented May 6, 2026 •

Copy link
Copy Markdown

Test Results

    13 files  +    6      13 suites  +6   4m 2s ⏱️ + 2m 13s
 3 075 tests +    1   3 072 ✅ +    1   3 💤 ±0  0 ❌ ±0 
18 430 runs  +9 214  18 417 ✅ +9 208  13 💤 +6  0 ❌ ±0 

Results for commit 0da93fe. ± Comparison against base commit 0537e58.

♻️ This comment has been updated with latest results.

@github-actions

github-actions Bot commented May 6, 2026 •

Copy link
Copy Markdown

🚀 Benchmark Results

Details

BenchmarkDotNet v0.14.0, Ubuntu 24.04.4 LTS (Noble Numbat)
AMD EPYC 9V74, 1 CPU, 4 logical and 2 physical cores
.NET SDK 10.0.203
[Host] : .NET 10.0.7 (10.0.726.21808), X64 RyuJIT AVX-512F+CD+BW+DQ+VL+VBMI
DefaultJob : .NET 10.0.7 (10.0.726.21808), X64 RyuJIT AVX-512F+CD+BW+DQ+VL+VBMI

Method Mean Error StdDev Gen0 Allocated
TypeIsNotStatic_aweXpect 168.0 ns 1.97 ns 1.85 ns 0.0391 656 B

@vbreuss
vbreuss force-pushed the topic/support-net-10 branch from 2a9fe99 to a468b1c Compare May 6, 2026 13:21

Copilot AI left a comment

Copy link
Copy Markdown

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 aweXpect.Reflection to build and test against .NET 10, extending the library’s multi-targeting and adjusting build/CI infrastructure to accommodate the new SDK and solution format.

Changes:

  • Add net10.0 to the library and test target frameworks, and introduce a .NET 10 API baseline file for API-compatibility testing.
  • Move build/benchmark infrastructure to .NET 10 (NUKE build project + benchmarks) and update CI to install .NET 10 SDKs.
  • Switch from .sln to .slnx solution configuration and update NUKE parameters accordingly.

Reviewed changes

Copilot reviewed 15 out of 16 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
Tests/Directory.Build.props Adds net10.0 to test target frameworks.
Tests/aweXpect.Reflection.Api.Tests/Expected/aweXpect.Reflection_net10.0.txt Adds expected public API surface for net10.0 API checks.
Source/Directory.Build.props Adds net10.0 to library target frameworks.
Source/aweXpect.Reflection/Helpers/LinqAsyncHelpers.cs Adjusts conditional compilation around async-LINQ helpers.
Pipeline/Build.MutationTests.cs Runs mutation tests targeting net10.0.
Pipeline/Build.csproj Updates NUKE build project to net10.0.
global.json Pins repository SDK to .NET SDK 10.0.201.
Directory.Packages.props Updates build-time dependencies (NUKE + SharpCompress).
Benchmarks/aweXpect.Reflection.Benchmarks/aweXpect.Reflection.Benchmarks.csproj Updates benchmarks to target net10.0.
aweXpect.Reflection.slnx Introduces new XML solution file.
aweXpect.Reflection.sln Removes old .sln solution file.
.nuke/parameters.json Points NUKE to aweXpect.Reflection.slnx.
.github/workflows/ci.yml Installs .NET 10.0.x in CI matrix.
.github/workflows/ci-analysis.yml Installs .NET 10.0.x for analysis workflows.
.github/workflows/build.yml Installs .NET 10.0.x for build workflows.
.github/copilot-instructions.md Updates contributor instructions for .NET 10, but still contains outdated SDK/solution references (see comments).

Comment thread Pipeline/Build.csproj Resolved
Comment thread Directory.Packages.props Resolved
Comment thread .github/copilot-instructions.md Resolved
Comment thread .github/copilot-instructions.md Resolved
Comment thread .github/copilot-instructions.md Resolved
@github-actions

github-actions Bot commented May 6, 2026

Copy link
Copy Markdown

👽 Mutation Results

Mutation testing badge

aweXpect.Reflection

Details
File Score Killed Survived Timeout No Coverage Ignored Compile Errors Total Detected Total Undetected Total Mutants
Helpers/LinqAsyncHelpers.cs 71.74% 33 4 0 9 41 0 33 13 87

The final mutation score is 71.74%

Coverage Thresholds: high:80 low:60 break:0

@vbreuss
vbreuss enabled auto-merge (squash) May 6, 2026 13:30
@sonarqubecloud

sonarqubecloud Bot commented May 6, 2026

Copy link
Copy Markdown

@vbreuss
vbreuss merged commit 62e4f71 into main May 6, 2026
11 checks passed
@vbreuss
vbreuss deleted the topic/support-net-10 branch May 6, 2026 13:34
@github-actions

Copy link
Copy Markdown

This is addressed in release v1.1.0.

@github-actions github-actions Bot added the state: released The issue is released label May 10, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

state: released The issue is released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants