Код: Выделить всё
Building Test Projects
Starting test discovery for requested test run
========== Starting test discovery ==========
[MSTest][Discovery][C:\sln\project\bin\Debug\project.dll] Failed to discover tests from assembly C:\sln\project\bin\Debug\project.dll. Reason:Field not found: 'Microsoft.VisualStudio.TestTools.UnitTesting.TestContext.TestRunDirectoryLabel'.
No test is available in C:\sln\project\bin\Debug\project.dll. Make sure that test discoverer & executors are registered and platform & framework version settings are appropriate and try again.
========== Test discovery finished: 0 Tests found in 993.5 ms ==========
Вот мой файл .runsettings, если он актуален.
Код: Выделить всё
.\TestResults
x64
Подробнее здесь: [url]https://stackoverflow.com/questions/76220708/strange-error-when-trying-to-discover-mstest-tests-in-visual-studio-net-core-7[/url]