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?
It\'s just a
Try setting MVCBuildViews to true in your project file (i.e. edit your csproj file)
true