πŸ”₯ Pragmatic .NET Code Rules Course is on Presale - 50% off!BUY NOW
Free .NET starter kit
1,635 developers downloaded this kit

Stop arguing about code style in .NET projects.
Get the exact starter setup I use.

Drop these files into any .NET solution and get consistent code style, CI quality gates, architecture tests, and PR hygiene out of the box.

Get the kit free, delivered to your inbox
βœ“Secure deliveryβœ“Instant accessβœ“No credit card
New in the kit β†’ CI Quality Gate, Architecture Tests, Dependabot & more
See it work

The actual workflow

Click a command to watch that part of the kit run.

bash Β· dotnet-code-rules
⏡⏡ auto-accept edits on
❯
dotnet-code-rules/
β”œβ”€ .editorconfig # style + naming + severities
β”œβ”€ Directory.Build.props # analyzers, warnings-as-errors
β”œβ”€ global.json # pinned SDK
β”œβ”€ .github/
β”‚ β”œβ”€ workflows/ci.yml # restore β†’ format β†’ build β†’ test
β”‚ β”œβ”€ dependabot.yml
β”‚ └─ PULL_REQUEST_TEMPLATE.md
β”œβ”€ tests/
β”‚ └─ ArchitectureTests/ # NetArchTest starters
β”œβ”€ hooks/pre-commit # dotnet format guard
└─ docs/
β”œβ”€ vs-cleanup-checklist.md
└─ dotnet-format-guide.md
.editorconfigDirectory.Build.propsglobal.jsonci.ymldependabot.ymlPULL_REQUEST_TEMPLATE.mdArchitectureTestspre-commitvs-cleanup-checklist.mddotnet-format-guide.md.editorconfigDirectory.Build.propsglobal.jsonci.ymldependabot.ymlPULL_REQUEST_TEMPLATE.mdArchitectureTestspre-commitvs-cleanup-checklist.mddotnet-format-guide.md
0
Files & guides
0+
Developers
0
Config needed
0%
Yours to edit

What's inside

Ten things you can use on day one

Not vague advice. Actual files, setup guidance, and practical defaults you can drop in right away.

βœ“ Production-ready .editorconfig

Code style, naming conventions, formatting rules, and diagnostic severities for C# and .NET.

βœ“ Centralized build rules with Directory.Build.props

Centralized compiler settings, analyzers, and pragmatic warnings-as-errors - applied to every project in the solution.

βœ“ Pinned .NET SDK with global.json

Pins the .NET SDK version with rollForward for reproducible builds across machines and CI.

NEW
βœ“ CI Quality Gate (GitHub Actions)

Restore β†’ format check β†’ build β†’ test. Runs on every push and PR. SDK version read from global.json.

NEW
βœ“ PR Template & Issue Templates

PR checklist focused on code quality and consistency, plus clean bug report and feature request templates.

NEW
βœ“ Dependabot Configuration

Automated dependency updates - NuGet and GitHub Actions, grouped and low-noise. Max 5 open PRs at a time.

βœ“ Git Pre-Commit Hook

Runs dotnet format --verify-no-changes before every commit - no more messy diffs.

NEW
βœ“ Architecture Tests (NetArchTest)

Starter architecture tests that enforce interface naming, layer dependency rules, and naming smell detection.

βœ“ Visual Studio Cleanup Checklist

Step-by-step VS setup for format-on-save and code cleanup.

NEW
βœ“ dotnet format Guide

How to run dotnet format locally, common commands, and pre-commit setup.


Why this matters

Most teams don't lack talent. They lack shared defaults.

Before

βœ•Inconsistent formatting across the codebase

βœ•Endless pull request comments about styling

βœ•Warnings and rules handled differently by each developer

βœ•No architectural guardrails in the codebase

βœ•Messy project setup when starting from scratch

After

βœ“Consistent code style enforced by .editorconfig

βœ“Formatting verified automatically in CI

βœ“Nullable warnings treated as errors - the ones that matter

βœ“Architecture test starters ready to adapt

βœ“PR hygiene and dependency management out of the box


How you start

From email to enforced in three steps

1

Get the kit

Drop your email and the full starter kit lands in your inbox - every file and guide, zipped and ready.

2

Drop it into your solution

Copy the files into any new or existing .NET repo. No packages to install, no configuration to wire up.

3

Commit with confidence

Push once and the CI quality gate, format checks, and architecture tests start guarding your code.


What is this exactly?

This starter kit is Module 01 material from Pragmatic .NET Code Rules. The full course goes deeper into advanced EditorConfig patterns, static code analysis, full architecture test suites, and more.

Who is it for?

.NET developers who want cleaner project defaults, fewer style-related review comments, and a more predictable setup for new or existing codebases.

Stop reviewing style. Start shipping.

Every file and guide above, free, in your inbox, ready in two minutes.

Download the Starter Kit

No credit card Β· unsubscribe anytime