Aspnetcore.docs: dotnet watch run doesn't work with relative paths with the --project or -p option

Created on 6 Apr 2019  Â·  4Comments  Â·  Source: dotnet/AspNetCore.Docs

Unless I'm in the actual directory itself, dotnet watch run --profile relative/path/to/project.csproj doesn't work. The error message that no msbuild project was found keeps getting displayed. You have to navigate to the folder under which the csproj file is located.


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

P2 Source - Docs.ms

Most helpful comment

Yeah, of course, I'll do that. :)

All 4 comments

That's how it works. Feel free to open a product bug if you think it should support relative paths.

This works if you attach the --project switch to watch rather than to run:

dotnet watch --project relative/path/to/project.csproj run

@serpent5 that sounds like great info to add to the article. Are you interested in PRing it?

Yeah, of course, I'll do that. :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wgutierrezr picture wgutierrezr  Â·  3Comments

Rick-Anderson picture Rick-Anderson  Â·  3Comments

AnthonyMastrean picture AnthonyMastrean  Â·  3Comments

cocowalla picture cocowalla  Â·  3Comments

nenmyx picture nenmyx  Â·  3Comments