How to do it...

  1. Create a C# class library project, say ClassLibrary, in Visual Studio 2017.
  2. In solution explorer, right-click on the solution or project node and execute the Manage NuGet Packages command:
  1. This brings up the NuGet Package Manager, which can be used to search and install NuGet packages to the solution or project:
  1. In the search bar, type the following text to find NuGet packages tagged as analyzers : Tags:"analyzers".
Note that some of the well-known packages are tagged as analyzer, so you may also want to search for Tags:"analyzer" ...

Get Roslyn Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.