| title | Install external analyzers | |||
|---|---|---|---|---|
| description | Learn how to install external analyzers in Visual Studio. Install analyzers with NuGet analyzer packages and as a VSIX extension. | |||
| author | mikadumont | |||
| ms.author | midumont | |||
| ms.subservice | code-analysis | |||
| ms.topic | install-set-up-deploy | |||
| helpviewer_keywords |
|
|||
| ms.date | 03/25/2024 |
Visual Studio includes a built-in core set of .NET Compiler Platform (Roslyn) analyzers, which are always on. If you need more analyzers, you can install external analyzers either as a NuGet package, or as a Visual Studio extension (.vsix file).
To install a NuGet analyzer package, follow these steps:
-
Find the analyzer package you want to install on NuGet.
For example, you might want to install StyleCop.Analyzers to search for style issues in your codebase.
-
Install the package in Visual Studio, using either the NuGet Package Manager or the Package Manager Console.
The analyzer assemblies are installed and appear in Solution Explorer under References > Analyzers.
To install a Visual Studio Extension-based analyzer, follow these steps:
-
In Visual Studio, select Extensions > Manage Extensions.
The Manage Extensions dialog box opens.
[!NOTE] Alternatively, you can find and download the analyzer extension directly from Visual Studio Marketplace.
-
Expand Online in the left pane, and then select Visual Studio Marketplace.
-
In the search box, enter the name of the analyzer extension you want to install, and then select it.
-
Select Download.
The extension is downloaded.
-
Select Close to close the dialog box, and then close all instances of Visual Studio to launch the VSIX Installer.
The VSIX Installer dialog box opens.
-
Select Modify to start the installation.
-
After a minute or two, the installation completes. Select Close.
-
Reopen Visual Studio.
-
To verify whether the extension is installed, select Extensions > Manage Extensions. In the Manage Extensions dialog box, select Installed in the left pane, and then search for the extension by name.
