How to do it...

  1. Create a C# class library project, say ClassLibrary, in Visual Studio 2017.
  2. From the top-level menu, navigate to Tools | Extensions and Updates.
  3. Navigate to Online | Visual Studio Marketplace on the left tab of the dialog to view the available VSIXes in the Visual Studio extension gallery/marketplace:
  1. Search analyzers in the search textbox in the upper-right corner of the dialog and download an analyzer VSIX, say Refactoring Essentials for Visual Studio:
  1. Once the download completes, you will get a message at the bottom ...

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.