microsoft / microsoft/vscode-dotnettools

[NETSDKE2E][Green] The Run test button does not appear in the code file after building, unless expanding the folder in the testing explorer.

Open
#3,166 0 comments 0 reactions 1 assignee View on GitHub

@peterwald is already working on this.

Since Jun 1, 2026.

area-test
Dominant language
No language data
Stars
321
Forks
54
Avg merge
2d 19h
Merged PRs (30d)
2

Description

REGRESSION INFO
Not repro on C#DK April release 3.20.199 build.

INSTALL STEP
1.Install SDK 10.0.300 on Linux.
2.Install latest VS Code and C# dev kit May prerelease 3.21.203 (C# 2.142.16) 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 by right clicking .csproj file.

Expected
The Run test button should appear after building the project, not by expanding the folder in the testing explorer.
Image

Actual
The Run test button appears after expanding the folder in the testing explorer.
Image

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.