title: Visual Studio 2008/2010 addin - errors list
body: <p>Hello fellow developers!</p>
  
  <p>I am trying to get the build error codes from a visual studio add-in.</p>
  
  <p>I found a way to get errors from the Error List window, with this code:</p>
  
  <pre><code>_applicationObject.ExecuteCommand("View.ErrorList", " ");
  myErrors = _applicationObject.ToolWindows.ErrorList;
  </code></pre>
  
  <p>But this only gives me the errors currently displayed in the errors list, so if no warnings are selected, they will not show up. But the bigger issue with this is that I only get a description of the error, and not the error code itself. So I'm afraid that if i'll search for a specific error string I will run into language-specific issues.</p>