Compile time view checking for ASP.NET MVC.

added by jalpesh
7/12/2013 9:07:24 PM

4 Kicks, 120 Views

While developing an ASP.NET MVC application, you need to create lots of views. At that time it does not compile the view. So if you have some typo in your view like namespace or any where you will get to know when you load that view in browser. At that time ASP.NET Complier will compile the complete view. We all are humans and we tends to make spelling mistakes and sometimes it a productivity loss when you create a very big view or complicated view. So I was searching on internet that whether there is a tool available to compile view also. After digging into it. I have found that there is a setting where we can tell whether its compile view or not. So once you enable that settings It will also compile views.


1 comments

Mike Johnson
7/15/2013 4:04:36 PM
If you have a lot of views this can be come expensive for compile time to check all the views. I have been searching for a way to make this happen only for release mode as I end up turning it off in day to day debug mode.