© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
16 replies
Fypur

❔ Specify working directory when using dotnet watch

When I use

dotnet run --project ../../../../Platformer.csproj
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
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?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

✅ dotnet watch not working
C#CC# / help
3y ago
VSCode set dotnet sdk directory
C#CC# / help
16mo ago
.NET Core `dotnet watch run` on MacOS
C#CC# / help
2y ago
dotnet watch run FileNotFoundException (System.Runtime 7.0)
C#CC# / help
4y ago