title: Check for razor errors during build
body: <p>Is there a way for Visual Studio (I'm using 2010) to find errors within razor views during builds, in the same way as other code in a C# project would?</p>
  
  <p>It's just a pain that you can check any errors in your code and think that everything's fine, but it appears that you can't be sure about views unless you go through each one.</p>
  
  <p>BTW I obviously don't code in my views - I'm just talking about HTML or URL extension methods for example.</p>