Skip to content

The Run/Debug button has disappeared in .csproj projects with the C# Dev Kit active. #3173

@Jomontalvo

Description

@Jomontalvo

Describe the Issue

Image

After using GitHub Copilot with an agent to run unit tests on an .slnx solution, the Run/Debug button (the Play icon) simply disappeared. When I open the Program.cs file, it doesn't appear, and the text options do nothing when I have a solution without a unit test project. However, when a unit test project exists, it's the one that runs from these options, even with the Program.cs file open.

Steps To Reproduce

  1. Create an SLNx solution and API project (.csproj).
  2. Open the Program.cs file.

Expected Behavior

The Run/Debug button (icon) should be visible, but it is not.

Environment Information

Os: MacOS 26.5.1
VS Code: 1.122.1
Extensions:
C# Dev Kit: 3.20.199
C#: 2.142.16
NET Install Tool: 3.0.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions