dotnet / dotnet/project-system

Red "ignored" icon next to all analyzers through project reference

Open
#8,202 17 comments 10 reactions 1 assignee Claimed by @drewnoakes View on GitHub
Area-Analyzers Feature-Dependency-Node Triage-Investigate
Dominant language
C#
Stars
1k
Forks
415
PR merge metrics
No merged PRs in 30d

Description

**Version Used**: VS2022 17.2.0

**Steps to Reproduce**:

1. https://github.com/Sergio0694/ComputeSharp
2. Open solution, build any of the samples (eg. `ComputeSharp.Sample`)
3. Expand the analyzers node

**Expected Behavior**:

The analyzers from local projects should be displayed the same as the other ones.

**Actual Behavior**:

You should see a red "ignored" icon next to all local analyzers. I assume this come from the git tooling?

![image](https://user-images.githubusercontent.com/10199417/168494291-198a3419-1a33-4356-8b04-705503a201d0.png)

The icon doesn't really make sense to me though given those generated files are not part of the repository/folder anyway.
Also this wasn't there before 17.2.0. Additionally, this doesn't happen when the same analyzer is from a NuGet package.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.