microsoft / vscode-azureappservice

Azure App Service extension for VS Code
https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azureappservice
MIT License
111 stars 94 forks source link

Alert users on deployment when the runtime of their project doesn't match their web app #2599

Open v-xinda opened 9 months ago

v-xinda commented 9 months ago

OS: All Azure Resources Build Link: vscode-azuresourcegroups-0.8.1-alpha.2 1.vsix App Service Version: v0.25.1 .NET Core version: 8.0.100-rc.1.23463.5 Regression: Not a regression

Repro Steps:

  1. Create a .NET Core project using dotnet new web and open it in VSCode.
  2. Create a .NET 6 Linux web app -> Deploy the above project to it -> Click "Browse Website".
  3. Check whether the webpage shows correctly.

Expect: The webpage shows correctly.

Screenshot 2023-12-13 at 16 34 34

Actual: The webpage shows incorrectly.

Screenshot 2023-12-13 at 16 35 58

More Info:

  1. This issue doesn't reproduce for the .NET Windows web app.
  2. This issue doesn't reproduce for the .NET 8 Linux web app.
  3. This issue also reproduces for the .NET 7 Linux web app.
  4. This issue also reproduces after deploying a python project to the Python web app.