How we enforce .NET coding standards to improve productivity
20 points
1 day ago
| 2 comments
| anthonysimmon.com
| HN
maltalex
7 hours ago
[-]
If you’re working in the .net ecosystem, you need to grok msbuild. Is not exactly painless or elegant, but is incredibly powerful. Creating a nuget package that applies settings and configuration files to consuming projects is the tip of a very deep iceberg.

I’m the author and owner of a similar code style/code quality package in a fairly large company and went through a very similar process, culminating with writing our own Roslyn-based analyzers to enforce various internal practices to supplant the customized configuration of the Microsoft provided analyzers. Also, we discovered that different projects need different level of analysis. We’re less strict with e.g test projects than core infrastructure. But all projects need to have the same formatting and style. That too can be easily done with one nuget using msbuild.

reply
reverseblade2
18 hours ago
[-]
Title should be C# not .Net
reply
algorithmsRcool
11 hours ago
[-]
I'm not sure i understand your comment, .editorconfig works just fine for VB files as well as F#
reply