Errors when trying to create a function in a sub folder
See original GitHub issueDoes this occur consistently? Yes Repro steps:
I am using a using multi-root workspace
In the last version of the extension, when creating a new function there was a browse button which allowed me to navigate to the scr folder in my workspace folder, this has been removed in the current version, so i looked in the settings and have added ‘/src’ Project Subfolder setting
I then click add azure function, when i has a popup asking to initial project to work with vs code (which seems odd since thats exactly what the button is supposed to do) so i click yes, and the error Failed to find csproj file in folder “src” is displayed in the bottom right.
If i add my own csproj it on adds the Function.css file none of the other stuff
Action: azureFunctions.createFunction Error type: Error Error Message: Failed to find csproj file in folder “src”.
Version: 1.7.2 OS: win32 OS Release: 10.0.22000 Product: Visual Studio Code Product Version: 1.62.3 Language: en
Call Stack
DotnetInitVSCodeStep.<anonymous> extension.bundle.js:2:4227981
fulfilled extension.bundle.js:2:4226731
processTicksAndRejections task_queues.js:93:5
Issue Analytics
- State:
- Created a year ago
- Comments:7 (4 by maintainers)

Top Related StackOverflow Question
i am using the pallete option so alls good, but its hidden so less user friendly IMO
on the azure panel > workspace area > create function > then in the drop down add a browse option at present it on offers the workspace folders (multiple folder project) (its where it was before although it wasn’t called the workspace area at the time)