title: How to get TeamCity to recognize msbuild compilation errors, using the Rake runner
body: <p>I have a .NET project with a Rake build script. Rake calls msbuild.exe to do the actual compilation. When I configure a TeamCity 5.0 build using the Rake runner, compilation errors are not recognized as such by TC.  When a compilation error occurs:</p>
  
  <ol>
  <li>The build <b>does</b> abort and is flagged as a failure;</li>
  <li>The log overview <b>does not</b> contain the compilation error message. I have to go to Build Log -> All Messages to see the failure;</li>
  <li>The compilation failure is <b>not reported via email</b>. The {COMPILATION_ERRORS} placeholder in my email notification template is replaced with a blank string.</li>
  </ol>
  
  <p>What do I have to do to get TC to recognize the compilation errors?</p>