title: NUnit: XSLT to transform NUnit output to MSBuild errors and warnings format
body: <p>I want my NUnit output transformed into msbuild error format so I can report on these in the Visual Studio error list. I know TestDriven.Net does the same.</p>
  
  <p><strong>MSBuild error format samples:</strong></p>
  
  <p>Main.cs(17,20): warning CS0168: The variable 'foo' is declared but never used 
  C:\dir1\foo.resx(2) : error BC30188: Declaration expected.
  cl : Command line warning D4024 : unrecognized source file type 'foo.cs', object file assumed
  error CS0006: Metadata file 'System.dll' could not be found.</p>
  
  <p><strong>Post by MSBuild team blog on this format:</strong></p>
  
  <p><a href="http://blogs.msdn.com/msbuild/archive/2006/11/03/msbuild-visual-studio-aware-error-messages-and-message-formats.aspx" rel="nofollow noreferrer">http://blogs.msdn.com/msbuild/archive/2006/11/03/msbuild-visual-studio-aware-error-messages-and-message-formats.aspx</a></p>