简体   繁体   中英

Live reload when code changes

Is it possible to have asp.net core applications to reload in the browser when there are code changes made?

I am running things using the command-line:

dotnet run

It is annoying to have to control-c to stop and then start the app each time.

Google "dotnet watch". It's a MS tool that let's you fire off commands when your source code changes (like, recompiling your code without stopping and restarting manually). Very useful and is likely exactly what you're looking for.

https://jonhilton.net/2016/08/04/compile-your-changes-on-the-fly-with-net-core/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM