Couldn't find a project to run. Ensure a project exists in <> or pass the path to the project using --project.
The LLM then does dotnet run --project <<path-to-project>> which in the context of running a webapp is incorrect, since it uses the current folder as working directory, which means that the ContentRoot is not correct for the app and things like static files aren't found.
There are several options here:
- Change the message to suggest navigating to the directory and running from there.
- Remove the suggestion to use
--project
- Qualify the suggestion to explicitly call out that for web apps you should navigate to the folder.
- There might be a way to force the app to use the correct working directory independent of where
dotnet run is called from (something in launchSettings.json)?
@baronfel @danroth27 @DamianEdwards