Monday, 15 February 2010

ASP.Net MVC MvcBuildViews increasing compile time drastically -



ASP.Net MVC MvcBuildViews increasing compile time drastically -

we have project , build views generate compile time errors if there wrong within views' .cshtml files.

still, compile time increases drastically:

mvcbuildviews = true takes 62 seconds mvcbuildviews = false takes 9 seconds

is acceptable? cause increment quite drastic in cannot stand having wait such compile times. way can improve such compilation?

the project till consists around 130 views & partial views (.cshtml files). considered big / medium / small?

well think having possibility compile views thing cannot wait long either. prefer to add together mvcbuildviews = true within properygroup of release compile views @ release time , before deployment

the property grouping should this:

<propertygroup condition=" '$(configuration)|$(platform)' == 'release|anycpu' ">

so set

<mvcbuildviews>true</mvcbuildviews>

inside release block. way still compile views 1 time , not every time seek debug...

asp.net asp.net-mvc

No comments:

Post a Comment