Skip to content

Confusing analyzer warnings in solution explorer with no way to see any details #4893

@loop-evgeny

Description

@loop-evgeny

Visual Studio Version: 16.1.1

Summary: The Analyzers node in Solution Explorer shows some items that seem to be warnings about the code, but there appears to be no way to see what code they refer to.

Steps to Reproduce:

  1. Create an empty ASP.NET Core 2.2 web application.
  2. Expand Dependencies, Analyzers in solution explorer.

Expected Behavior:

Either no warnings or I can double-click on the warning to go to the line of code where the problem occurs or there is a context menu item for this.

Actual Behavior:

Warnings such as "MVC1000 Use of IHtmlHelper.{0} should be avoided." and "EF1000 Possible SQL injection vulnerability." are shown:

image

There are no warnings in the Error list, even if I build the solution.

In my real project there are also warning icons, like this:

image

This is what first attracted my attention to it and I thought that the warning icons referred to the text of the child nodes, but when I create a new empty project I get those child text nodes without the warning icon. There seem to be other issues about the warning icons, such as #2257 and #4716.

User Impact: Confusion!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Resolution-FixedThe bug has been fixed, refer to the milestone to see in which release it was fixed.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions