![]() |
VOOZH | about |
dotnet add package Microsoft.Extensions.StaticAnalysis --version 10.7.0
NuGet\Install-Package Microsoft.Extensions.StaticAnalysis -Version 10.7.0
<PackageReference Include="Microsoft.Extensions.StaticAnalysis" Version="10.7.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
<PackageVersion Include="Microsoft.Extensions.StaticAnalysis" Version="10.7.0" />Directory.Packages.props
<PackageReference Include="Microsoft.Extensions.StaticAnalysis"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>Project file
paket add Microsoft.Extensions.StaticAnalysis --version 10.7.0
#r "nuget: Microsoft.Extensions.StaticAnalysis, 10.7.0"
#:package Microsoft.Extensions.StaticAnalysis@10.7.0
#addin nuget:?package=Microsoft.Extensions.StaticAnalysis&version=10.7.0Install as a Cake Addin
#tool nuget:?package=Microsoft.Extensions.StaticAnalysis&version=10.7.0Install as a Cake Tool
A curated set of code analyzers and code analyzer settings.
From the command-line:
dotnet add package Microsoft.Extensions.StaticAnalysis
Or directly in the C# project file:
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.StaticAnalysis" Version="[CURRENTVERSION]" >
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
On install, a warning will be displayed that The StaticAnalysisCodeType property is not defined, assuming 'General'. The General set of diagnostics is enabled by default. To select a different set of diagnostics (or hide the warning) add the StaticAnalysisCodeType property to your project as follows.
<PropertyGroup>
<StaticAnalysisCodeType>General</StaticAnalysisCodeType>
</PropertyGroup>
Different pre-defined sets of diagnostics are available depending on the type of project being built. These can be specified in the StaticAnalysisCodeType property:
Each of these also has an optional -Tier1 and a -Tier2 variant (e.g. General-Tier1).
Tier1 enables only the most important diagnostics from this set.Tier2 includes Tier1 diagnostics and others that aren't as critical.Tier suffixes include all diagnostics from tier's 1 and 2, and any others that are applicable.We welcome feedback and contributions in our GitHub repo.
Learn more about Target Frameworks and .NET Standard.
This package is not used by any NuGet packages.
Showing the top 2 popular GitHub repositories that depend on Microsoft.Extensions.StaticAnalysis:
| Repository | Stars |
|---|---|
|
PSAppDeployToolkit/PSAppDeployToolkit
Project Homepage & Forums
|
|
|
Hona/VerticalSliceArchitecture
Spend less time over-engineering, and more time coding. The template has a focus on convenience, and developer confidence. Vertical Slice Architecture 🎈
|
| Version | Downloads | Last Updated |
|---|---|---|
| 10.7.0 | 280 | 6/9/2026 |
| 10.6.0 | 3,187 | 5/12/2026 |
| 10.5.0 | 3,543 | 4/15/2026 |
| 10.4.0 | 2,243 | 3/10/2026 |
| 10.3.0 | 5,117 | 2/10/2026 |
| 10.2.0 | 5,077 | 1/13/2026 |
| 10.1.0 | 5,345 | 12/9/2025 |
| 10.0.0 | 696 | 11/11/2025 |
| 9.10.0 | 10,068 | 10/14/2025 |
| 9.9.0 | 15,812 | 9/9/2025 |
| 9.8.0 | 1,292 | 8/12/2025 |
| 9.7.0 | 12,033 | 7/8/2025 |
| 9.6.0 | 819 | 6/10/2025 |
| 9.5.0 | 837 | 5/13/2025 |
| 9.4.0 | 644 | 4/8/2025 |
| 9.3.0 | 646 | 3/11/2025 |
| 9.2.0 | 36,304 | 2/11/2025 |
| 9.1.0 | 9,605 | 1/14/2025 |
| 9.0.0 | 8,948 | 11/12/2024 |
| 8.10.0 | 1,573 | 10/8/2024 |