ChilliCream analyzer configurations for C# projects.
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.AnalyzersBecause 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:
<PropertyGroup>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
</PropertyGroup>