I am running ASP.NET Core application on Visual Studio Code on a mac. To run the app, I use dotnet run from the terminal. 
Whenever I make changes in one of the C# files, I have to stop and restart the app by hitting ctrl+c first and dotnet run again. 
I watched Pluralsight course of Scott Allen, where he uses Visual Studio and after an edit to any C# files, he just reloads the page and it shows the changes. I am wondering if I can do the same in Visual Studio Code. 
I think that dotnet watch should work. See the documentation from the link as there are various options. Here I copied the order in which this should work.
- Add Microsoft.DotNet.Watcher.Tools to the tools section of the
 project.jsonfile- Run
 dotnet restore- Execute with
 dotnet watch run
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With