Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

How to clear the "ErrorList" window before compiling

$
0
0
Hi there,

I'm invoking "SolutionBuild2.BuildProject()" on various projects in an arbitrary solution and need to inspect each project's build errors via "DTE2.ToolsWindows.ErrorList". I discovered however that Visual Studio (VS) doesn't always clear the "Error List" window of existing errors when you compile a different project but simply appends new errors to it. Moreover, VS even parses some projects behind the scenes automatically and populates the "Error List" window on-the-fly. Lastly, the "Project" column in the "Error List" window isn't even filled in for some project types like C++ so I can't even identify the project. Does anyone (therefore) know how to compile a project and detect its errors given that the "Error List" window may contain messages from projects I haven't explicitly compiled (which aren't dependencies) as well as messages whose project can't even be identified. Thanks very much.

Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>