Skip to content

[NETSDKE2E][Green] The test explorer does not show UT test method. #2716

@yinjiehe01

Description

@yinjiehe01

REGRESSION INFO
This issue does not repro in C# Dev kit Jan Pre-release 2 1.92.5(C# 2.112.45)

INSTALL STEP
1.Install SDK 10.0.102 on Linux.
2.Install latest VS Code and C# dev kit Jan Pre-release 3 1.93.4 (C# 2.113.22) extension.

REPRO STEPS
1.Click the Create .NET Project button and select a UT test project.
2.Add the pass and failed code in UnitTest1.cs file, then build it in solution explorer.

Expected
The testing explorer shows all test cases.

Image

Actual
The test explorer does not found UT test method.

Image
[error] System.MissingMethodException: Method not found: 'Void Microsoft.TestPlatform.VsTestConsole.TranslationLayer.Interfaces.IVsTestConsoleWrapper.DiscoverTests(System.Collections.Generic.IEnumerable`1<System.String>, System.String, Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestPlatformOptions, Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.ITestDiscoveryEventsHandler2)'.
   at Microsoft.VisualStudio.TestWindow.Messaging.RemoteAgent.TestRunController.VsTestRunController.DiscoverTestsAsync(IEnumerable`1 sources, String launcherType, String launcherConfiguration, RunSettingsInfo runSettings, RemoteTestPlatformOptions remoteOptions, ITestRunDataSink dataSink, CancellationToken cancellationToken)
   at Microsoft.VisualStudio.TestWindow.Messaging.RemoteAgent.BaseTestAgentBridge.DiscoverTestsAsync(IEnumerable`1 sources, String launcherType, String launcherConfiguration, String discoverySettings, RemoteTestPlatformOptions options, CancellationToken cancellationToken)
   at Microsoft.VisualStudio.TestWindow.Host.TestPlatformProvider.DiscoverTestsAsync(DiscoverTestsRequest request, VsTestRunSession runSession, ImmutableDictionary`2 discoverSettingsMap, ImmutableArray`1 containersToDiscover, IEnumerable`1 activeEnvironments, CancellationToken cancellationToken)
2026-01-21 22:38:07.449 [info] ========== Test discovery aborted: 0 Tests found in 63.8 ms ==========
2026-01-21 22:38:09.230 [info] Tests are available, running test discovery: /home/nicole/TestProject1/TestProject1/bin/Debug/net10.0/TestProject1.dll
2026-01-21 22:38:09.231 [info] Scheduling discovery: /home/nicole/TestProject1/TestProject1/bin/Debug/net10.0/TestProject1.dll [Last modified: 1/21/2026, 10:38:06 PM]
2026-01-21 22:38:09.237 [info] No runSettingsPath configured. Falling back to default settings.

logs.zip

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions