Skip to content

Comments

Introduce .NET 10 support #1823

Draft
Bertk wants to merge 4 commits intocoverlet-coverage:masterfrom
Bertk:net10-support
Draft

Introduce .NET 10 support #1823
Bertk wants to merge 4 commits intocoverlet-coverage:masterfrom
Bertk:net10-support

Conversation

@Bertk
Copy link
Collaborator

@Bertk Bertk commented Feb 19, 2026

Add .NET 10/9 support, update SDKs and dependencies (#1822)

Update project to support .NET 10 (net10.0) and .NET 9 (net9.0) alongside .NET 8 and netstandard2.0. Update global.json to SDK 10.0.103 and add .NET 9/10 SDK steps to build pipelines. Bump language version to latest and update package dependencies (e.g., Microsoft.CodeAnalysis 5.0.0, xunit 3.2.2, System.* 9.0.13). Adjust MSBuild props/targets for new tool paths. Update test/integration projects for new frameworks. Fix minor code issues, method renames, and clean up code. Update default coverletCollectors/coverletMsbuild versions for deterministic build tests. Modernize codebase for latest .NET compatibility.

@Bertk Bertk added enhancement General enhancement request breaking-change Issue or PR that represents a breaking change in features or functional. dependencies Pull requests that update a dependency file * NO MERGE * The PR is not ready for merge yet (see discussion for detailed reasons) labels Feb 20, 2026
- Add net10.0 TFM to test/template projects; remove net9.0
- Update Coverlet tools path logic for .NET 10 SDK/TFM selection
- Mark VSTest as unsupported on .NET 10+ in test projects
- Replace xunit.v3.mtp-v2 with xunit.v3 in all test projects (not using Micrsosoft Testing Platform)
- Refactor integration test base to inject ITestOutputHelper
- Pass target framework explicitly in DotnetTool integration test
- Improve comments and clarify TFM/test platform logic
Updated build.yml to use --diagnostic-output-fileprefix instead of --diagnostic-file-prefix for coverlet.integration.tests.dll (xunit.v3). This corrects the argument name to match the expected parameter for the test runner.
Previously, the ExcludedByAttributeFiles path was hardcoded to the debug folder. This change updates the path to use the current build configuration (in lowercase), allowing the build process to correctly handle assets for different configurations such as Debug or Release.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking-change Issue or PR that represents a breaking change in features or functional. dependencies Pull requests that update a dependency file enhancement General enhancement request * NO MERGE * The PR is not ready for merge yet (see discussion for detailed reasons)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant