By default when you do a build on an ASP.NET MVC project it
compiles all code within the project, except for the code within view template
files. With the ASP.NET MVC Beta you had to roll your own MSBuild task if
you wanted to compile the code within view templates. The ASP.NET MVC RC
build now includes a built-in MSBuild task that you can use to include views as
part of the project compilation process. This will verify the syntax and
code included inline within all views, master pages, and partial views for the
application, and give you build errors if it encounters any problems.
For performance reasons we don't recommend running this for
quick compiles during development, but it is convenient to add to particular
build configuration profiles (for example: staging and deployment) and/or for
use with Build or CI (continuous integration) servers. Please review the
release notes for the steps to enable this.