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
                    
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="MVFC.Pack.Analyzers" Version="4.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MVFC.Pack.Analyzers" Version="4.0.0" />
                    
Directory.Packages.props
<PackageReference Include="MVFC.Pack.Analyzers" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add MVFC.Pack.Analyzers --version 4.0.0
                    
#r "nuget: MVFC.Pack.Analyzers, 4.0.0"
                    
#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.
#:package MVFC.Pack.Analyzers@4.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=MVFC.Pack.Analyzers&version=4.0.0
                    
Install as a Cake Addin
#tool nuget:?package=MVFC.Pack.Analyzers&version=4.0.0
                    
Install as a Cake Tool

MVFC.Pack.Analyzers

🇧🇷 Leia em Português · ← Back to MVFC.Pack

License Platform NuGet Version NuGet Downloads

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

Apache-2.0

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.0 326 4/8/2026
3.0.3 179 3/20/2026
2.0.1 210 2/23/2026
2.0.0 216 2/23/2026
1.0.3 199 2/23/2026
1.0.2 194 2/23/2026