You can make the web project perform compile time checking of the markup in the views by modifying the .csproj file and turning on the "MvcBuildViews" property. The advantage of this is that you will know at compile time any problem with a view, not at run time when someone accesses that page. So please follow the below blog to do that: http://blogs.msdn.com/b/jimlamb/archive/2010/04/20/turn-on-compile-time-view-checking-for-asp-net-mvc-projects-in-tfs-build-2010.aspx However, doing in this will make the compilation is extremely slower. It made me crazy every time I want to debug a unit test because it build the solution include the views and It could take 1 minutes before starting the test debug. To overcome that, I turn off MvcBuildViews for Debug compilation of the solution. To do this, open the web .csproj file by any text editor, find <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> then add <MvcBuildViews>false</MvcBuildViews> under it. It will simply overwrite the default setting which was set to true for DEBUG configuration.
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <MvcBuildViews>false</MvcBuildViews> <DebugSymbols>true</DebugSymbols> <DebugType>full</DebugType> <Optimize>false</Optimize> <OutputPath>bin\</OutputPath> <DefineConstants>DEBUG;TRACE</DefineConstants> <ErrorReport>prompt</ErrorReport> <WarningLevel>4</WarningLevel> </PropertyGroup>Cheers