microsoft / vscode-azurefunctions

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

Inside VS-Code -> AzureTab -> Workspace -> Local Project showing Error: Unable to detect project file. #3773

Closed sharma-shiv closed 1 year ago

sharma-shiv commented 1 year ago

Does this occur consistently? Yes Repro steps:

  1. Started Local Emulator Blob Container
  2. run "func start" command
  3. function seems to run in terminal but in Local Project area Error is coming "Error: Unable to detect project file."

image

Version: 1.12.1 OS: win32 OS Release: 10.0.22621 Product: Visual Studio Code Product Version: 1.80.1 Language: en

novenera commented 1 year ago

Following. I am getting the same issue after creating a Logic App workspace with a Function App and Logic App projects in it.

image

Visual Studio Code 1.80.2 Azure Functions v1.12.2 Azure Function Core Tools Version 4.0.4865 Function Runtime Version: 4.12.2.19454 Logic Apps (Standard) VS Code extension v2.45.4 Azurite v3.25.0 .NET 7.0.306

alexweininger commented 1 year ago

Try opening a workspace with only a single Functions project in it. Currently this error is thrown when the Functions extension sees two .csproj files.

sharma-shiv commented 1 year ago

Thanks. It worked for me.