Kiruyuto.DotNet.Config
2.4.5
Prefix Reserved
dotnet add package Kiruyuto.DotNet.Config --version 2.4.5
NuGet\Install-Package Kiruyuto.DotNet.Config -Version 2.4.5
<PackageReference Include="Kiruyuto.DotNet.Config" Version="2.4.5"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
<PackageVersion Include="Kiruyuto.DotNet.Config" Version="2.4.5" />
<PackageReference Include="Kiruyuto.DotNet.Config"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
paket add Kiruyuto.DotNet.Config --version 2.4.5
#r "nuget: Kiruyuto.DotNet.Config, 2.4.5"
#:package Kiruyuto.DotNet.Config@2.4.5
#addin nuget:?package=Kiruyuto.DotNet.Config&version=2.4.5
#tool nuget:?package=Kiruyuto.DotNet.Config&version=2.4.5
<p align="center"> <img src=".github/resources/readme-banner.png" alt="README banner"> </p>
<p align="center"> Personal set of rules and analyzers distributed as a NuGet package to share configuration across .NET projects. </p>
<p align="center"> <sub> <strong>Heavily</strong> based on <a href="https://github.com/meziantou/">Gérald Barré (@Meziantou)</a>'s "<a href="https://www.meziantou.net/sharing-coding-style-and-roslyn-analyzers-across-projects.htm">Sharing coding style and Roslyn analyzers across projects</a>" post and his <a href="https://github.com/meziantou/Meziantou.DotNet.CodingStandard">CodingStandard</a> repository.<br> This config contains rules changed and fine-tuned to my personal and work needs as well as preferences. </sub> </p>
Usage
Add the NuGet package to your project, and the configs will be automatically imported.
It is recommended to use Directory.Build.props in your project over per .csproj configuration
This package bans EF Core's AddAsync and AddRangeAsync by default.
Projects that intentionally rely on async value generators, such as HiLo, can disable only those two bans using:
<Project>
<PropertyGroup>
<KiruyutoDotNetConfigEnableEntityFrameworkCoreAsyncAddBans>false</KiruyutoDotNetConfigEnableEntityFrameworkCoreAsyncAddBans>
</PropertyGroup>
</Project>
Structure overview
- Dependencies can be found in Kiruyuto.DotNet.Config.csproj
.globalconfigrule configurations are located infiles/directory.propsfiles are located inbuild/directory. These are split into 'categories' for improved maintainability
Contributing
See CONTRIBUTING.md for guidelines, rule authoring, and local build/testing instructions.
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- AsyncFixer (>= 2.1.0)
- Microsoft.CodeAnalysis.BannedApiAnalyzers (>= 3.3.4)
- Microsoft.EntityFrameworkCore.Analyzers (>= 10.0.8)
- Microsoft.VisualStudio.Threading.Analyzers (>= 17.14.15)
- SonarAnalyzer.CSharp (>= 10.25.0.139117)
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.4.5 | 108 | 5/13/2026 |
| 2.4.4 | 271 | 4/30/2026 |
| 2.4.2 | 499 | 4/12/2026 |
| 2.4.1 | 250 | 3/30/2026 |
| 2.4.0 | 408 | 3/14/2026 |
| 2.3.11 | 199 | 3/12/2026 |
| 2.3.10 | 859 | 2/25/2026 |
| 2.3.9 | 377 | 2/20/2026 |
| 2.3.8 | 785 | 2/7/2026 |
| 2.3.7 | 654 | 1/30/2026 |
| 2.3.6 | 1,773 | 1/14/2026 |
| 2.3.5 | 363 | 1/12/2026 |
| 2.3.4 | 390 | 1/8/2026 |
| 2.3.3 | 261 | 1/6/2026 |
| 2.3.2 | 235 | 1/6/2026 |
| 2.3.1 | 232 | 1/6/2026 |
| 2.3.0 | 207 | 1/6/2026 |
| 2.2.1 | 230 | 1/4/2026 |
| 2.2.0 | 223 | 1/4/2026 |
| 2.1.7 | 225 | 1/4/2026 |