ChilliCream.Analyzers 1.1.0

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

ChilliCream AnalyzerConfig

ChilliCream analyzers and analyzer configurations for C# projects.

Installation

The analyzer configuration is published to NuGet.

For libraries, install the configuration together with the Roslynator analyzers it configures:

dotnet add package ChilliCream.AnalyzerConfig.Libraries
dotnet add package Roslynator.Analyzers
dotnet add package Roslynator.CodeAnalysis.Analyzers
dotnet add package Roslynator.Formatting.Analyzers

The configuration package installs the ChilliCream analyzers (ChilliCream.Analyzers) as a dependency.

Because the package is a development dependency, NuGet automatically references it with PrivateAssets="all", so it does not flow to consumers of your library.

The code-style analyzer rules only run in the IDE by default. To also enforce them during dotnet build and in CI, set EnforceCodeStyleInBuild. The rule for unnecessary using directives (IDE0005) runs during a build only when GenerateDocumentationFile is also set:

<PropertyGroup>
  <EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
  <GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>

GenerateDocumentationFile also reports public members that have no XML documentation comment (CS1591). To turn that off, add <NoWarn>$(NoWarn);CS1591</NoWarn> to the same property group.

Analyzers

Rule Title
CCA0001 Simplify name
CCA0002 Remove redundant type arguments
CCA0003 Access members through their declaring type

These rules run during dotnet build without EnforceCodeStyleInBuild. The ChilliCream.AnalyzerConfig.Libraries package sets their severity to warning.

The analyzers need the .NET 10 SDK or later, and older SDKs skip them with warning CS9057.

Versioning

ChilliCream.Analyzers and ChilliCream.AnalyzerConfig.Libraries are released together under one version number, which follows Semantic Versioning. A new warning does not count as a breaking change:

  • Major releases remove or rename an analyzer, a rule ID, or a package, raise the .NET SDK or compiler version the analyzers need, or change the package's MSBuild properties and targets in a way that changes compilation.
  • Minor releases add analyzers, code fixes, or options, and change which rules the configuration enables: a rule set to warning, lowered, turned off, or removed from the configuration so that it falls back to its default severity. An analyzer that starts reporting in more places also ships in a minor release.
  • Patch releases fix false positives, false negatives, code fixes, crashes, documentation, and packaging.

The configuration sets no rule above warning, so whether a warning fails the build is up to the project's TreatWarningsAsErrors setting. Any release can add warnings, so a project that builds with TreatWarningsAsErrors pins the version and updates it deliberately. The release notes list every rule whose severity changed, and this command applies the code fixes of the ChilliCream rules:

dotnet format analyzers --diagnostics CCA0001 CCA0002 CCA0003 --severity info
There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on ChilliCream.Analyzers:

Package Downloads
ChilliCream.AnalyzerConfig.Libraries

The ChilliCream analyzer configuration for C# libraries.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.1.0 126,612 11/10/2026