CSharpStyleChecker 1.0.1

dotnet add package CSharpStyleChecker --version 1.0.1
                    
NuGet\Install-Package CSharpStyleChecker -Version 1.0.1
                    
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="CSharpStyleChecker" Version="1.0.1">
  <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="CSharpStyleChecker" Version="1.0.1" />
                    
Directory.Packages.props
<PackageReference Include="CSharpStyleChecker">
  <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 CSharpStyleChecker --version 1.0.1
                    
#r "nuget: CSharpStyleChecker, 1.0.1"
                    
#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 CSharpStyleChecker@1.0.1
                    
#: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=CSharpStyleChecker&version=1.0.1
                    
Install as a Cake Addin
#tool nuget:?package=CSharpStyleChecker&version=1.0.1
                    
Install as a Cake Tool

CopilotAIWorkflow packages

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

Release 1.0.0 — two packages replace the deprecated CSharpStyleValidator, CoverageGap.Tool, and CoverageGapAnalysis. Same purpose and scope; version line restarts at 1.0.0.

CSharpStyleChecker

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

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

Analyzers load from analyzers/dotnet/cs (includes bundled ExitPoints.dll). See README.md — CSharpStyleChecker.

Replaces: CSharpStyleValidator (rule IDs CSV* → CSC*).

ExitPointGaps

Local dotnet tool — lists exit-point gaps (exitGaps[]) from Cobertura and Roslyn exit-point collection. Analysis is integrated into the tool assembly (no separate library package).

dotnet new tool-manifest
dotnet tool install ExitPointGaps --version 1.*
dotnet tool run exitpointgaps --repo-root .

Requires .NET SDK 10.0, MTP + TUnit in test projects. Gate: summary.exitGapCount == 0. Multi-project summaries use schema v3 (reportFile indirection). Workflow SSOT: tech-tunit.md. User quickstart: README.md §2.

Replaces: CoverageGap.Tool + CoverageGapAnalysis.

Performance (1.0.0)

  • Per-project parallelism by default; cap with --max-parallelism <n>
  • Solution pre-build once, then --no-build for repeat runs
  • Scoped Cobertura parse, streaming writes, Roslyn Compilation dropped after exit collection
  • Benchmark (this repo, Release, --no-build): serial ~22.8s → parallel ~12.0s (~47% faster)

Details: CHANGELOG.md.

Migration

Deprecated Use instead
PackageReference CSharpStyleValidator CSharpStyleChecker
dotnet tool install CoverageGap.Tool dotnet tool install ExitPointGaps
PackageReference CoverageGapAnalysis ExitPointGaps CLI only
Analyzer IDs CSV001–CSV008 CSC001–CSC008
dotnet tool run coveragegap dotnet tool run exitpointgaps

Requirements

Package Consumer / host Notes
CSharpStyleChecker SDK-style netstandard2.0+ or .NET Core App .NET SDK 9.0.300+ or VS 2022 17.14+ (Roslyn 4.14)
ExitPointGaps .NET SDK 10.0 Local tool manifest; not a project reference
This repository .NET SDK 10.0 global.json pins 10.0.100

Repo clone: Directory.Build.targets auto-applies CSharpStyleChecker (opt out with ApplyCSharpStyleChecker=false). NuGet consumers use PackageReference on each project that should enforce CSC rules; not transitive to downstream libraries.

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 (8)

Showing the top 5 NuGet packages that depend on CSharpStyleChecker:

Package Downloads
ZeroAlloc

Zero-allocation string formatting and binary serialization library with Roslyn source generators. Features: compile-time optimized ZA.String() and ZA.Bytes() APIs, endian-aware wrappers (U16BE, I32LE, etc.), VarInt encoding, length-prefixed string encodings, and generated binary parsers. Perfect for network protocols, CAN/FlexRay, embedded systems, and high-performance logging. Requires .NET 10+.

NetworkInspector.Values

Strongly-typed network address and timestamp value types for NetworkInspector. Provides MacAddress, IPv4Address, IPv6Address, Eui64, Uuid, and Timestamp structs.

NetworkInspector.Core

High-performance protocol analysis stack for network packet dissection. Provides the core framework for protocol registration, field trees, packet parsing, and cross-packet indexing. Includes a Roslyn source generator for declarative protocol definitions.

NetworkInspector.Sources

Frame source implementations for NetworkInspector. Reads PCAP, PCAPNG, Vector BLF, and Vector ASC capture files with streaming and random-access support.

NetworkInspector.FrameBuilder

Typed, allocation-free frame-builder library for NetworkInspector. Compose protocol stacks and emit RFC-conformant wire frames with zero heap allocations on the hot path.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.1 92 7/13/2026
1.0.0 188 7/8/2026