aspnetcore icon indicating copy to clipboard operation
aspnetcore copied to clipboard

Add Whatch Files to Source

Open Mig1st4ck opened this issue 12 years ago • 4 comments

I am having a hard time understanding how this vNext work.

I open the server wilth "k web" and the MVC project Sample work with no problem.

Then i change a File for exemple "HomeController", and Hit refresh on the browser and it is still the same. So even there is no DLL in a Bin forlder, those files are still in Memory.

To reload my page i need to press "Ctrol+C" and "Y" to close the current web, then run the Web again with "k web".

Could it be possible to add a FileWatcher to my source files, rebuild my code everytime i change a file?

Or am i simple doing something wrong???

Mig1st4ck avatar May 14 '14 10:05 Mig1st4ck

Agreed, I'm seeing the same thing. Changes to Views are updated immediately by only refreshing the browser but changes to Controllers or Models (or both) require "k web" to be terminated via Control+C, then re-run the "k web" command again to start up again. While it is quite nice to not have to manually build the project in Visual Studio, adding file watching functionality to trigger a rebuild would be even better.

clintkolodziej avatar May 14 '14 22:05 clintkolodziej

It'll be there eventually :smile:

davidfowl avatar May 14 '14 22:05 davidfowl

Great news, thanks!

clintkolodziej avatar May 14 '14 22:05 clintkolodziej

This would be a hosting feature, we have an issue for it here: https://github.com/aspnet/Hosting/issues/45

glennc avatar May 20 '14 22:05 glennc