The mvc razor view are non compiled markup with code behind interleaved. You'll come to know about your Razor view errors of c# only at runtime. This is area of concerns when you deployed your code in production and you're not sure if this works as expected even though look alike testing has been conducted in staging or UAT environment.
Well I'm sure we'll see this improvement in coming version of MVC framework where we will be having compile time/built time errors in IDE itself.
Now to our rescue a work around.
true in the .csproj.
See http://www.dotnetcurry.com/ShowArticle.aspx?ID=698 for more details.
http://haacked.com/archive/2011/05/09/compiling-mvc-views-in-a-build-environment.aspx
http://geekswithblogs.net/Aligned/archive/2013/05/28/pre-compiling-your-mvc-views.aspx
Well I'm sure we'll see this improvement in coming version of MVC framework where we will be having compile time/built time errors in IDE itself.
Now to our rescue a work around.
See http://www.dotnetcurry.com/ShowArticle.aspx?ID=698 for more details.
http://haacked.com/archive/2011/05/09/compiling-mvc-views-in-a-build-environment.aspx
http://geekswithblogs.net/Aligned/archive/2013/05/28/pre-compiling-your-mvc-views.aspx
No comments :
Post a Comment