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.
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
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. :)
Most helpful comment
Yeah, of course, I'll do that. :)