MVFC.Pack.Analyzers
4.0.0
dotnet add package MVFC.Pack.Analyzers --version 4.0.0
NuGet\Install-Package MVFC.Pack.Analyzers -Version 4.0.0
<PackageReference Include="MVFC.Pack.Analyzers" Version="4.0.0" />
<PackageVersion Include="MVFC.Pack.Analyzers" Version="4.0.0" />
<PackageReference Include="MVFC.Pack.Analyzers" />
paket add MVFC.Pack.Analyzers --version 4.0.0
#r "nuget: MVFC.Pack.Analyzers, 4.0.0"
#:package MVFC.Pack.Analyzers@4.0.0
#addin nuget:?package=MVFC.Pack.Analyzers&version=4.0.0
#tool nuget:?package=MVFC.Pack.Analyzers&version=4.0.0
MVFC.Pack.Analyzers
Metapackage for code quality — SonarAnalyzer, Roslynator and Meziantou.Analyzer activate automatically at build time. No configuration required.
Motivation
Keeping code quality consistent across a team requires enforcing the same rules everywhere:
no unused variables, no string comparisons without StringComparison, no unhandled
cancellation tokens, no synchronous blocking in async contexts. Without a shared analyzer
baseline, every developer's IDE flags different things.
MVFC.Pack.Analyzers installs four complementary analyzer packages in a single reference.
They activate automatically at build time in every project that references this package —
no .editorconfig required, no extra MSBuild properties, nothing to configure.
Installation
dotnet add package MVFC.Pack.Analyzers
Quick Start
No code required. Install the package and analyzers activate immediately:
<PackageReference Include="MVFC.Pack.Analyzers" Version="x.x.x">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
Examples of rules enforced automatically:
// SonarAnalyzer — S2259: null dereference
var name = GetName(); // returns string?
Console.WriteLine(name.Length); // ⚠ warning: possible null reference
// Meziantou.Analyzer — MA0006: use StringComparison
if (a == b) { } // ⚠ warning
if (a.Equals(b, StringComparison.Ordinal)) // ✅ correct
// Roslynator — RCS1021: simplify lambda
list.Where(x => { return x > 0; }); // ⚠ warning
list.Where(x => x > 0); // ✅ correct
Included Packages
| Package | Version |
|---|---|
| Microsoft.CodeAnalysis.NetAnalyzers | 10.0.103 |
| SonarAnalyzer.CSharp | 10.19.0.132793 |
| Roslynator.Analyzers | 4.15.0 |
| Meziantou.Analyzer | 3.0.15 |
License
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Meziantou.Analyzer (>= 3.0.44)
- Microsoft.CodeAnalysis.NetAnalyzers (>= 10.0.201)
- Roslynator.Analyzers (>= 4.15.0)
- SonarAnalyzer.CSharp (>= 10.22.0.136894)
-
net9.0
- Meziantou.Analyzer (>= 3.0.44)
- Microsoft.CodeAnalysis.NetAnalyzers (>= 9.0.0)
- Roslynator.Analyzers (>= 4.15.0)
- SonarAnalyzer.CSharp (>= 10.22.0.136894)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.