Hacker News new | ask | show | jobs
by unhammer 1462 days ago
is `dotnet watch` basically `git ls-files|entr dotnet build` ?

(entr is http://eradman.com/entrproject/ – like inotifywait but easier)

3 comments

It may as well be. It can do some legit hot reload, but the set of scenarios where it works is so small it’s effectively useless.
Yea, the drama occurred when it was in preview, so we all thought it's going to have real hot-reload capability as we know from webdev.
No, it has a lot of bytecode level intelligence to surgically replace the parts of the program that need replaced (as I understand it). Your version just re-runs the project from scratch whenever a change occurs.
I think it also replaces the running code on the fly.