You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/code-quality/install-fxcop-analyzers.md
+22-1Lines changed: 22 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,9 @@ You can install these FxCop analyzers either as a NuGet package or as a VSIX ext
18
18
19
19
## NuGet package
20
20
21
-
You can install the [Microsoft.CodeAnalysis.FxCopAnalyzers](https://www.nuget.org/packages/Microsoft.CodeAnalysis.FxCopAnalyzers) NuGet package directly from the project's Code Analysis properties page:
21
+
::: moniker range=">=vs-2019"
22
+
23
+
In Visual Studio 2019 version 16.3 and later, you can install the [Microsoft.CodeAnalysis.FxCopAnalyzers](https://www.nuget.org/packages/Microsoft.CodeAnalysis.FxCopAnalyzers) NuGet package directly from the project's Code Analysis properties page:
22
24
23
25
1. Right-click on the project node in **Solution Explorer**, select **Properties**, and then select the **Code Analysis** tab.
24
26
@@ -29,6 +31,25 @@ You can install the [Microsoft.CodeAnalysis.FxCopAnalyzers](https://www.nuget.or
29
31
Visual Studio installs the latest version of the Microsoft.CodeAnalyzers.FxCopAnalyzers package. The assemblies appear in **Solution Explorer** under **References** > **Analyzers**.
30
32
31
33

34
+
35
+
If you're using an older version of Visual Studio 2019, install the package using either the [Package Manager Console](/nuget/quickstart/install-and-use-a-package-in-visual-studio#package-manager-console) or the [Package Manager UI](/nuget/quickstart/install-and-use-a-package-in-visual-studio#package-manager-console).
36
+
37
+
::: moniker-end
38
+
39
+
::: moniker range="vs-2017"
40
+
41
+
1.[Determine which analyzer package version](#fxcopanalyzers-package-versions) to install, based on your version of Visual Studio.
42
+
43
+
2. Install the package in Visual Studio using either the [Package Manager Console](/nuget/quickstart/install-and-use-a-package-in-visual-studio#package-manager-console) or the [Package Manager UI](/nuget/quickstart/install-and-use-a-package-in-visual-studio#package-manager-console).
44
+
45
+
> [!NOTE]
46
+
> The nuget.org page for each analyzer package shows you the command to paste into the **Package Manager Console**. There's even a handy button to copy the text to the clipboard.
0 commit comments