Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Changing Razor View Seems to Restart My Application

It appears to me that a simple change to a .cshmtl file in my application restarts the application. Honestly I'm not sure it's restarting, but it is painfully slow when I am reloading the page. Does this seem normal? Anyone have any advice to figure out why this might be happening? It makes development a real drag.

I feel like I have time to get up and get a cup of coffee and a cigarette every time I make a change. And I don't even smoke! If this continues, I might have to take up smoking.

like image 258
ek_ny Avatar asked Sep 10 '25 15:09

ek_ny


1 Answers

If you change your View the Application should not restart. But it takes some time cause your View gets compiled before rendered.

You can set a breakpoint on the Application_Start() method in global.asax to see if your Application gets restarted.

like image 57
dknaack Avatar answered Sep 13 '25 04:09

dknaack