Do you need to recompile the asp.net razor chtml file?

I wanted to “live”, edit the Razor files of * .chtml files on my MVC website, and wondered if I needed to recompile my webapp or if it would restart IIS Apppool. I tried on my local machine, and it seems that I can edit without having to recompile, but you need a final answer or documentation confirming this.

I also tried this with * .aspx files in webforms, it seems I can edit the aspx file without having to recompile if the * .designer file does not change, that is, I do not add / remove runat = server in the aspx file, I can only edit HTML markup.

+3
source share
1 answer

No, this does not require compilation. However, it is possible to create an application to compile views.

+7
source

All Articles