title: razor views are not giving compile time error
body: <p>I've recently installed VS 2012 Professional.</p>
  
  <p>When i try to build my MVC4 Web Project. It doesn't recognize error in razor view when i do "Build" or "Re-Build".</p>
  
  <p><strong>Example</strong> : <br/>
  I removed a namespace from the project / or say renamed it. i build the solution, it gave me errors in all cs files, which i fixed by changing the namespace. The entire solution build successfully. When i run the project it gave me <strong>Compilation Error</strong> saying that namespace not found, because the old namespace was still referred in some of the views (*.cshtml files).</p>
  
  <p><strong>Expected Solution</strong> : <br/>
  I wish when i do "Build" or "Re-Build", it should recognize such errors and show me along with any other errors.</p>
  
  <p>This was working fine with VS 2010, am i missing any configuration?</p>
  
  <p>Thanks In Advance !!
  Amit</p>
  
  <p><strong>Edit</strong>
  I found the answer myself, i think it was early to post the question :</p>
  
  <p><a href="https://stackoverflow.com/questions/5014317/razor-syntax-with-errors-compiles-when-it-should-not-compile">razor syntax with errors compiles when it should not compile</a></p>
  
  <blockquote>
    <p><strong>Another Problem</strong></p>
    
    <p>After changing value to True in .csproject file, when i start building
    the project it shows error, but it shows only one error at a time.
    let's say, i've 5 errors in total 3 views. it would just show me one
    error. Is there any solution so that it shows all the 5 errors ?</p>
  </blockquote>