What problem does it solve?
Many .NET projects suffer from inconsistent styling, unchecked warnings, and drifting code quality across teams and CI pipelines. This Skill helps enforce compile-time analyzers and shared style rules so teams catch issues early and maintain a uniform codebase.
Core Features & Use Cases
- Analyzer Configuration: Guidance on enabling Roslyn analyzers and recommended AnalysisLevel settings across a solution.
- Style & Formatting: Centralized .editorconfig recommendations and StyleCop settings to standardize naming, ordering, and formatting.
- CI Enforcement: Advice for Directory.Build.props settings like TreatWarningsAsErrors and EnforceCodeStyleInBuild to prevent regressions in automated builds.
- Use Case: Gradually introduce analyzers into an existing enterprise solution by extending the root .editorconfig, adding analyzer packages, and enabling warnings-as-errors in CI after fixing baseline issues.
Quick Start
Apply the analyzer configuration by adding a solution-root .editorconfig, referencing analyzers in Directory.Build.props, and enabling TreatWarningsAsErrors in your CI.