Skip to content

C# Dev Kit 3.20.x: “Run project associated with this file” no-ops on Linux #3185

Description

@RealShiftless

Describe the Issue

After updating C# Dev Kit, the editor top-right run button / “Run project associated with this file” no longer works on Linux.

Clicking it does nothing: no visible error, no DevTools console error, and no useful output in the C# Dev Kit, C#, Projects, or Extension Host output panels.

This reproduces even in a fresh dotnet new console project, so it does not appear to be caused by my actual project.

Downgrading C# Dev Kit to 3.10.12 restores the expected behavior. The issue reproduces with C# Dev Kit 3.20.197 and 3.20.199.

Steps To Reproduce

  1. Install C# Dev Kit 3.20.197 or 3.20.199 on Linux.

  2. Create a fresh console project:

    dotnet new console -o DevKitButtonProbe
    code -n DevKitButtonProbe

  3. Open Program.cs.

  4. Wait for C# Dev Kit / the project system to finish loading.

  5. Click the editor top-right play button dropdown.

  6. Select “Run project associated with this file”.

Expected:
The console project runs.

Actual:
Nothing happens. No visible error appears.

I also reproduced this in a real mixed CMake + .NET workspace. Downgrading only C# Dev Kit to 3.10.12 makes the same run-button workflow work again.

Expected Behavior

Clicking “Run project associated with this file” should run the console project associated with the currently open Program.cs file, the same way it does in C# Dev Kit 3.10.12.

Environment Information

OS:

  • Arch Linux x64

VS Code:

  • Currently tested with VS Code 1.122.1
  • I also originally reproduced this on VS Code 1.106.2 before updating VS Code.

Extensions tested:

  • C# Dev Kit 3.20.199: broken
  • C# Dev Kit 3.20.197: broken
  • C# Dev Kit 3.10.12: works
  • C# extension 2.140.8
  • .NET Runtime Install Tool 3.0.2

.NET:

  • .NET SDK 10.0.104
  • MSBuild 18.0.11

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions