microsoft / vscode-azurefunctions

Azure Functions extension for VS Code
https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azurefunctions
MIT License
291 stars 132 forks source link

Fail to execute Http Trigger function for a C# .NET 8.0 LTS project #4178

Open v-ruizh opened 3 months ago

v-ruizh commented 3 months ago

OS: All Build Version: v1.15.1-alpha.0 Regression: Not a Regression

Repro Steps:

  1. Enable "Show Hidden Stacks" setting. image
  2. Create and open a C# .NET 8.0 LTS function project with Http Trigger template in VS Code.
  3. Debug this project.
  4. Navigate to WORKSPACE view -> Expand the Functions node -> Right click the Http Trigger function and select "Execute Function Now..." to execute function with the default value.
  5. Check whether succeeds to execute the function or not.

Expect: Succeed to execute Http Trigger function.

Actual: Fail to execute Http Trigger function with an error. image

More Info: This issue does not reproduce for a C# .NET 8 Isolated LTS project.