C#C
C#3y ago
Fypur

❔ Specify working directory when using dotnet watch

When I use

dotnet run --project ../../../../Platformer.csproj



The project runs just fine. I want to be able to hot reload the project though (and since im using vscode because im on ubuntu it's a pain in the ass). I can't use rider because my pc isn't powerful enough.

When I use
dotnet watch --project ../../../../Platformer.csproj


The project starts up but then has an error because the project directory is set as the project's directlory (not the one I'm inputting the command from but the ../../../../ one).

Does anyone know how to fix this? Or maybe just another way to have hot reload in vs code?
Was this page helpful?