title: MSBuild: Produce message that is visible in VisualStudio's "error list" window
body: <p>Visual Studio has an "Error list" window:</p>
  
  <p><img src="https://i.stack.imgur.com/qKrfP.png" alt="Visual Studio Error list window"></p>
  
  <p>In a msbuild task (in a .csproj file):</p>
  
  <ul>
  <li>When I use the <code>&lt;error text="Foo"&gt;</code> tag, I get an error in the error list (and I can hide it by un-toggling errors in that window)</li>
  <li>When I use the <code>&lt;warning text="Bar"&gt;</code> tag, I get a warning in the error list (and I can hide it by un-toggling warnings in that window)</li>
  <li>When I use the <code>&lt;message text="Baz"&gt;</code> tag, <strong>I don't see anything in the error list window</strong>. If I go to the output window, I can see the message there (even if I toggle on or off messages).</li>
  </ul>
  
  <p><strong>How can I, from a MSBuild script, produce messages that show up in the Visual Studio "Error list" window ?</strong></p>
  
  <p>Note: I'm using Visual Studio 2010.</p>