FAQ: 2.1 How do I parse errors to the ErrorList window from the Output window? RRS feed


  • You can use the OutputWindowPane.OutputTaskItemString() method which not only writes to the output window pane but also to the Error List too.


    Code Sample:

    OutputWindowPane buildPane = _applicationObject.ToolWindows.OutputWindow.OutputWindowPanes.Item("Build");


    buildPane.OutputTaskItemString("stdafx.h(1) : a", vsTaskPriority.vsTaskPriorityHigh, null, vsTaskIcon.vsTaskIconComment, "stdafx.h", 1, "a", true);


    Related Thread:
    • Marked as answer by MSDN FAQ Wednesday, May 5, 2010 1:06 PM
    Wednesday, May 5, 2010 1:06 PM