Best practice .editorconfig
file for .NET development.
Defaults from dotnet new editorconfig
have been merged with defaults from VS2019.
Then most rules have been elevated into warnings, but lowered some to suggestions.
- Copy
.editorconfig
into the root of your repository - Copy
Directory.Build.Props
into the root of your repository (this will treat warnings as errors in Release mode - typically your CICD pipeline)
Alternatively, copy & paste this script in a Terminal, inside the root directory of your project:
. { iwr -useb "https://raw.githubusercontent.com/SSWConsulting/SSW.EditorConfig/main/install.ps1" } | iex