microsoft / vscode-docker

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

Fail to debug a .NET 9 project #4388

Closed v-ruizh closed 5 days ago

v-ruizh commented 5 days ago

OS: Windows Build Version: 20240913.1 .NET Version: 9.0.100-rc.1.24452.12

Repro Steps:

  1. Open a .NET 9 MVC project in VS Code.
  2. Add Docker related files to it.
  3. Debug the above project with the configuration "Docker .NET Launch".
  4. Check whether succeeds to debug the .NET 9 MVC project without any error.

Expect: Succeed to debug the .NET 9 MVC project without any error.

Actual: Fail to debug the .NET 9 MVC project. image

More Info:

  1. This issue does not reproduce for .NET 8 MVC/Console project.
  2. This issue also reproduces for .NET 9 Console project.
bwateratmsft commented 5 days ago

I can reproduce. Now that .NET 9 is in release candidate phase, we need to update the preview .NET version so that the images don't get scaffolded with -preview.