CSharpStyleValidator 1.1.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package CSharpStyleValidator --version 1.1.0
                    
NuGet\Install-Package CSharpStyleValidator -Version 1.1.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="CSharpStyleValidator" Version="1.1.0">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CSharpStyleValidator" Version="1.1.0" />
                    
Directory.Packages.props
<PackageReference Include="CSharpStyleValidator">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
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 CSharpStyleValidator --version 1.1.0
                    
#r "nuget: CSharpStyleValidator, 1.1.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 CSharpStyleValidator@1.1.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=CSharpStyleValidator&version=1.1.0
                    
Install as a Cake Addin
#tool nuget:?package=CSharpStyleValidator&version=1.1.0
                    
Install as a Cake Tool

CopilotAIWorkflow packages

NuGet packages from CopilotAIWorkflow — agent workflow tooling with mechanical quality gates.

CSharpStyleValidator

Roslyn analyzer enforcing C# style as compiler errors (CSV001–CSV007). Add as a development dependency:

<PackageReference Include="CSharpStyleValidator" Version="1.*" />

Analyzers load from analyzers/dotnet/cs (includes bundled ExitPoints.dll). No separate ExitPoints package or MSBuild targets are required. See the repository README.md for rule details and demo usage.

CoverageGapAnalysis

Library for Cobertura parsing, branch metrics, and exit-point gap reports. Used by agents and CI to enforce exitGapCount == 0. Consumer target: net10.0 or later (lib/net10.0 only — not referenceable from netstandard2.0 class libraries).

CoverageGap.Tool

Global .NET tool (coveragegap):

dotnet tool install -g CoverageGap.Tool
coveragegap report project path/YourProject.csproj --search-root src --repo-root .
coveragegap manifest project path/YourProject.csproj -o exits.json

Analyzes any restored SDK-style project (including netstandard2.0 source generators). Requires .NET 10 runtime.

Requirements

Package Consumer / host Notes
CSharpStyleValidator SDK-style netstandard2.0+ or .NET Core App Minimum .NET SDK 9.0.300 or VS 2022 17.14+ (Roslyn 4.14)
CoverageGapAnalysis net10.0+ library or app Cannot be referenced from netstandard2.0 projects
CoverageGap.Tool .NET 10 runtime Global CLI; not a project reference
This repository .NET SDK 10.0 global.json pins 10.0.100; app projects target net10.0

Repo clone only: root Directory.Build.targets auto-applies CSharpStyleValidator to eligible projects. NuGet consumers use PackageReference instead.

License

MIT — see LICENSE.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

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
2.0.0 89 6/20/2026
1.1.0 96 6/17/2026
1.0.0 101 6/16/2026