Possible Duplicate:
Check for razor errors during build
When I compile an ASP.Net MVC 4 project in VS2012, I get the notification
Build Succeeded
whether or not there were build errors related to a Razor View. The Output tab does not list any errors. I only see errors related to the Razor view if I check the Error List tab.
Is it possible to have a build error related to a Razor view to trigger a Build Failed rather than Build Succeeded message?