Visual Studio 2022 17.12.4 can't connect test runner process

Shi, Jason (Shanghai) 0 Reputation points
2025-02-07T02:18:20.4766667+00:00

After upgrading visual studio 2022 to 17.12.4, for .net 8 test project which is using MSTest and Xunit at same time, it always fails to execute tests from test explorer. The error message is like below:

"Unable to connect to testing platform runner process [xxxTests.dll]"

If turn off the preview feature flag, test can be executed from test explorer again.User's image

Is there a bug in the preview feature?

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,405 questions
Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying tests as a means of analysis or diagnosis.
358 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.