Collections.Analyzer is a set of roslyn-based diagnostics for C#-projects that detect potential problems with operating different collections.
For more information, see the following articles:
Analyze your C#-code and warn about redundant method calls.
Automatically fixes found problems.
Every analyzer can be installed as a usual nuget-package. Just add a package reference to a project:
<PackageReference Include="Collections.Analyzer" Version="0.2.12.1" />
The analyzer will work only in the project it was added to. If you want to analyse all projects in your solution, you
can add file Directory.build.props
to the solution directory with content:
<Project>
<ItemGroup>
<PackageReference Include="Collections.Analyzer" Version="0.2.12.1" />
</ItemGroup>
</Project>
MSBuild will read these properties.