Azure / Azure/azure-functions-core-tools
Unable to find project root. Expecting to find one of host.json, local.settings.json in project root.
- Dominant language
- C#
- Stars
- 1.5k
- Forks
- 498
- Avg merge
- 5d 4h
- Merged PRs (30d)
- 15
Description
I'm using VSC extension for creating functions. When I execute run.ps1 it creates a new terminal loading my user profile and executing the script. Then I receive the error from the subject.
My userprofile has the command:
"New-PSDrive -Name DRS -PSProvider FileSystem -Root "C:\DRSCoding"
Not sure if that could be causing the issue.

Contributor guide
Research direction
Start by reproducing the failure from the VS Code extension when run.ps1 opens a terminal with the user profile enabled. Inspect how project-root discovery uses host.json and local.settings.json, including behavior on the DRS PowerShell drive. Done means the command identifies the intended project root and runs successfully in this setup.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, powershell, vscode
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100