OS: Win 10
Build Version: 20260902.2
Repro Steps:
- Install C# Dev Kit
- Create a new project: dotnet new mvc -n DotnetApp0903
- Open the project folder in VS Code->Add Docker Files to Workspace
- 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.
More Info:
- This issue doesn't repro when separately install C# extension
- The project was created using: dotnet new mvc
- The generated project contains DotnetApp0903.csproj and no .sln file.
- Running "dotnet build" succeeds.
OS: Win 10
Build Version: 20260902.2
Repro Steps:
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.
More Info: