开发者

Filter out errors/warnings by project in Visual Studio

Is there a way to filter errors/warnings by project in Visual Studio 2010?

For example, if pro开发者_StackOverflow中文版ject A has dependencies for project B and C, Visual Studio will show errors/warnings for both project A, B and C, even whenever I compile project A alone.

I don't mind if VS show A's errors/warnings when I compile the entire solution, but I would like VS to show only A's errors/warnings whenever I compile it alone.


I don't think you can completely filter the errors and warnings of a particular project out, especially not if there are dependencies that are failing. You can't know about problems in A if it depends on B and B is not building.

In the errors list pane (View > Error List), the last column is "Project", and you can click the column header to sort your errors. The sorting should be good enough.


I understand that it is not strictly relevant to VS2010 but since VS2012 it has been possible to filter the Error List by Open Documents Current Project or Current Document.

See this blog for more information.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜