Skip to content

Kiruyuto/.NET-Config

Repository files navigation

README banner

Personal set of rules and analyzers distributed as a NuGet package to share configuration across .NET projects.

Heavily based on Gérald Barré (@Meziantou)'s "Sharing coding style and Roslyn analyzers across projects" post and his CodingStandard repository.
This config contains rules changed and fine-tuned to my personal and work needs as well as preferences.

Usage

Add the NuGet package to your project, and the configs will be automatically imported.

Important

It is recommended to use Directory.Build.props in your project over per .csproj configuration

Warning

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

Contributing

See CONTRIBUTING.md for guidelines, rule authoring, and local build/testing instructions.

About

A personal NuGet package containing rules and analyzers to share .NET code style and configuration across multiple projects

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors