Roslyn analyzers generate warnings for projects where they weren't installed as a nuget package #28757
Labels
Area-Analyzers
Bug
Resolution-By Design
The behavior reported in the issue matches the current design
Milestone
15.7.5:
Steps to Reproduce:
git clone https://github.com/NancyFx/Nancy.git
Nancy
Expected Behavior:
Code quality warnings just from a single project in the solution.
Actual Behavior:
Warnings from test projects too. Microsoft.CodeQuality.Analyzers listed as a dependency under projects, that were not selected when installing the nuget package (nuget manager still shows only one project installed).
Notice, that Microsoft.CodeQuality.Analyzers has
<developmentDependency>true</developmentDependency>
in nuspec.Do I miss something? Does it work as expected? How to use roslyn analyzers just for selected subset of projects?
The text was updated successfully, but these errors were encountered: