Search code examples
c#visual-studioerror-list

Visual Studio - Accessing Warnings/Errors from Error List in C#


I am a bit new to CSharp for a couple months, and I am trying to make "grab" the warnings/errors from the error list pane in Visual Studio and use them in my code, so that hopefully there can be a time where I can call this program after building something. Is there a class/property I can use to let me Access the Error List Window and its info?

Edit: by "grab" I mean just get the information in text(i.e. description or line number), so I can display it/write it to a file/etc.


Solution

  • See the MSDN documentation for ToolWindows.ErrorList.