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

Open
#605 1 comment 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
72/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
docker, typescript, vscode

Research direction

Reproduce the Add Docker Files to Workspace flow with the dotnet new mvc project, then inspect the generated .vscode/tasks.json and the project’s .csproj file. Compare the task reference with the files actually created, and run dotnet build to confirm the project builds; done means the generated tasks.json references the existing project file and the image build no longer fails.

Written by the indexing model from the issue text.

Description

.NET AT-CTI blocked external

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.
Dominant language
TypeScript
Stars
147
Forks
93
Avg merge
9h 16m
Merged PRs (30d)
14

Getting set up

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.

More from microsoft/vscode-containers

All issues in microsoft/vscode-containers

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.