Skip to content

Add Docker Files to Workspace generates invalid tasks.json referencing a non-existent .sln file when C# Dev Kit is installed #605

Description

@v-amyang

OS: Win 10
Build Version: 20260902.2

Repro Steps:

  1. Install C# Dev Kit
  2. Create a new project: dotnet new mvc -n DotnetApp0903
  3. Open the project folder in VS Code->Add Docker Files to Workspace
  4. Inspect the generated .vscode/tasks.json.

Expect:
Generated tasks.json should reference the existing project file(DotnetApp0903.csproj) instead of a non-existent solution file.

Actual:
Generates invalid tasks.json referencing a non-existent .sln file and lead to build image failed.

Image Image

More Info:

  1. This issue doesn't repro when separately install C# extension
  2. The project was created using: dotnet new mvc
  3. The generated project contains DotnetApp0903.csproj and no .sln file.
  4. Running "dotnet build" succeeds.

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

    Type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions