Azure / Azure/azure-functions-core-tools

Unable to find project root. Expecting to find one of host.json, local.settings.json in project root.

Open
#1,945 4 comments 0 reactions 0 assignees View on GitHub
question
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.
![Screenshot_384](https://user-images.githubusercontent.com/46718446/80152279-ad3c2500-85bb-11ea-85c1-df2114e35dbf.png)

Contributor guide

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.