Fix CI test logger failure on .NET 10 / vstest 18#1
Merged
rockfordlhotka merged 1 commit intomainfrom Feb 26, 2026
Merged
Conversation
GitHubActionsTestLogger 2.x uses the legacy VSTest extension discovery mechanism which no longer works with vstest 18.0.1 shipped in the .NET 10 SDK. Switch to v3.0.1, which targets Microsoft.Testing.Platform (MTP) and auto-registers via TestingPlatformBuilderHook — no explicit --logger flag required. - Add tests/Directory.Build.props to enable UseMicrosoftTestingPlatformRunner and include GitHubActionsTestLogger in all test projects (chains to root Directory.Build.props) - Bump GitHubActionsTestLogger to 3.0.1 in Directory.Packages.props - Remove --logger "github;..." from the CI test step (auto-registered by MTP) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
GitHubActionsTestLogger2.x uses the legacy VSTest extension discovery mechanism, which is broken in vstest 18.0.1 (.NET 10 SDK)TestingPlatformBuilderHook— no explicit--loggerflag neededtests/Directory.Build.propsto enableUseMicrosoftTestingPlatformRunnerand include the logger package across all test projectsTest plan
dotnet test --no-build --configuration Releasepasses all 112 tests locally🤖 Generated with Claude Code