/ Template

.NET Clean Architecture Template

LIVETemplate

.NET 10 clean architecture starter template with bounded contexts and conventions enforced by tests.

  • .NET 10
  • ASP.NET Core
  • Blazor WASM
  • EF Core 10
  • Mapperly
  • xUnit + NetArchTest
Scroll to details
Template

Highlights

  • Open source (MIT) — clone, or `dotnet new cleanarch -n MyApp`
  • Bounded-context layout — controller, service, mapper, models, EF config and tests live together per feature
  • Conventions enforced as tests (NetArchTest + Roslyn): sealed rules, no-Dto, ConfigureAwait, file-scoped namespaces, even method-body aeration
  • Agent-ready: an accurate AGENTS.md with a 'Start Here' guide and an end-to-end vertical-slice recipe
  • Mapperly source-gen mapping, FluentValidation, Quartz.NET, Serilog, Scalar API docs
  • Zero warnings, green test suite, CI workflow included