microsoft / vscode-docker

Docker Extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-docker
Other
1.18k stars 508 forks source link

Fail to debug multi project without any scaffolding #4211

Closed v-ruizh closed 5 months ago

v-ruizh commented 5 months ago

OS: Win 10 Build Version: 20240117.1 .NET Version: 8.0.101

Repro Steps:

  1. Clone this test project TestSolution.
  2. Open the project in VS Code Insiders.
  3. Ensure that it does not contain the .vscode folder. If there is, make sure it doesn't have a "launch.json".
  4. F5 -> Choose "Docker: Debug in Container" from "Select debugger" list -> Choose "Use .NET SDK" from "How would you like to build your container image?" option -> Select "TestWebApp/TestWebApp.csproj" project file.
  5. Check whether succeeds to debug the project or not.

Expect: Succeed to debug the project.

Actual: Fail to debug the project with an error. image

bwateratmsft commented 5 months ago

I am able to reproduce

bwateratmsft commented 5 months ago

This seems to only reproduce for .NET 7 projects. On the bright side, .NET 7 goes out-of-support in just a few months, so this may be a won't-fix.

dbreshears commented 5 months ago

Agreed, let's close this as won't fix for now since it doesn't reproduce in .NET 8