Microsoft.CodeAnalysis.NetAnalyzers 8.0.0-preview.23420.2

The ID prefix of this package has been reserved for one of the owners of this package by Prefix Reserved
This is a prerelease version of Microsoft.CodeAnalysis.NetAnalyzers.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Microsoft.CodeAnalysis.NetAnalyzers --version 8.0.0-preview.23420.2
NuGet\Install-Package Microsoft.CodeAnalysis.NetAnalyzers -Version 8.0.0-preview.23420.2
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="8.0.0-preview.23420.2">
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Microsoft.CodeAnalysis.NetAnalyzers --version 8.0.0-preview.23420.2
#r "nuget: Microsoft.CodeAnalysis.NetAnalyzers, 8.0.0-preview.23420.2"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Microsoft.CodeAnalysis.NetAnalyzers as a Cake Addin
#addin nuget:?package=Microsoft.CodeAnalysis.NetAnalyzers&version=8.0.0-preview.23420.2&prerelease

// Install Microsoft.CodeAnalysis.NetAnalyzers as a Cake Tool
#tool nuget:?package=Microsoft.CodeAnalysis.NetAnalyzers&version=8.0.0-preview.23420.2&prerelease


Contains all the .NET code analysis rules (CAxxxx) that are built into the .NET SDK starting .NET5 release. The documentation for CA rules can be found at

You do not need to manually install this NuGet package to your project if you are using .NET5 SDK or later. These analyzers are enabled by default for projects targeting .NET5 or later. For projects targeting earlier .NET frameworks, you can enable them in your MSBuild project file by setting one of the following properties:

  1. EnableNETAnalyzers

  2. AnalysisLevel

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages (90)

Showing the top 5 NuGet packages that depend on Microsoft.CodeAnalysis.NetAnalyzers:

Package Downloads

Core language tools or utilities over dependencies

Apache.Ignite The ID prefix of this package has been reserved for one of the owners of this package by

.NET client for Apache Ignite. Ignite is a distributed database for high-performance computing with in-memory speed.


NLog configuration helper and extensions for Ark standard configuration using code and not config files.


This library adds support for NodaTime types to MessagePack C#.


Extensions and helpers for Nodatime

GitHub repositories (130)

Showing the top 5 popular GitHub repositories that depend on Microsoft.CodeAnalysis.NetAnalyzers:

Repository Stars
Windows system utilities to maximize productivity
.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.
Integrate cutting-edge LLM technology quickly and easily into your apps
.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
Version Downloads Last updated
8.0.0 66,128 11/17/2023
8.0.0-preview.23525.2 1,491 11/14/2023
8.0.0-preview.23472.1 23,225 10/10/2023
8.0.0-preview.23420.2 3,300 9/12/2023
8.0.0-preview.23364.2 2,425 8/8/2023
8.0.0-preview.23320.2 344 7/11/2023
8.0.0-preview.23270.2 97 6/13/2023
8.0.0-preview.23225.2 174 5/16/2023
7.0.4 840,875 8/28/2023
7.0.4-preview1.23354.4 16,448 8/8/2023
7.0.3 793,464 6/15/2023
7.0.3-preview1.23267.1 17,926 6/13/2023
7.0.1 2,347,436 3/9/2023
7.0.1-preview1.23160.1 124 4/11/2023
7.0.1-preview1.23061.1 97,104 2/14/2023
7.0.0 2,105,826 12/8/2022
7.0.0-preview1.22559.1 539 12/13/2022
7.0.0-preview1.22518.1 92,305 11/7/2022
7.0.0-preview1.22514.1 185 11/7/2022
7.0.0-preview1.22464.1 9,585 10/11/2022
7.0.0-preview1.22452.2 115 10/11/2022
7.0.0-preview1.22403.2 81,047 9/14/2022
7.0.0-preview1.22362.3 33,905 8/9/2022
7.0.0-preview1.22361.3 136 8/9/2022
7.0.0-preview1.22310.1 11,685 7/12/2022
7.0.0-preview1.22274.2 4,900 6/14/2022
7.0.0-preview1.22217.1 17,304 5/10/2022
7.0.0-preview1.22168.1 27,841 4/13/2022
7.0.0-preview1.22116.1 12,978 3/14/2022
7.0.0-preview1.22068.2 54,468 2/17/2022
6.0.0 10,347,887 11/8/2021
5.0.3 7,989,810 1/5/2021
5.0.2 7,159 10/18/2021
5.0.1 445,778 12/3/2020
5.0.0 76,182 11/12/2020