The simplest way to build
enterprise .NET applications

A production-ready Clean Architecture solution template built with ASP.NET Core Minimal API, Entity Framework Core, and Aspire. Includes a Web API backend with an optional Angular or React frontend.

Install dotnet new install Clean.Architecture.Solution.Template

Everything you need to ship

Stop configuring boilerplate. Start building features.

Multiple UI Options

Choose Angular or React for a full-stack application, or go API-only for a lightweight backend. Authentication is pre-configured for each option, and TypeScript API clients are auto-generated for Angular and React frontends.

Multiple Database Options

Choose SQL Server, PostgreSQL, or SQLite at project creation. Entity Framework Core handles database initialisation out of the box — swap databases without changing application code.

Structured Use Cases

Every feature lives in its own folder with a command or query, a validator, and a handler — no bloated service classes. Built around vertical slices, the included samples show exactly how to structure new use cases from day one.

Behaviours, Not Boilerplate

Every request is automatically validated, authorised, logged, and performance-monitored through a pre-wired pipeline of behaviours. Validation failures return consistent Problem Details responses — no manual wiring required.

Automated Tests (Zero Setup)

Unit, integration, functional, and acceptance tests are included and ready to run. Functional tests hit a real database with Respawn for isolation; acceptance tests drive the full stack with Playwright and Aspire. CI runs everything from day one.

Aspire Orchestration

Press F5 to start the entire stack — API, database, and frontend boot together, orchestrated by Aspire. Deploy anywhere with consistent deployments, and built-in OpenTelemetry delivers logs, traces, and metrics with zero setup.

Up and running in minutes

Three commands to a production-ready solution structure.

Install the template

Install the template from NuGet once. It stays available for all future projects.

$ dotnet new install Clean.Architecture.Solution.Template

Create your project

Scaffold a new solution with your preferred frontend and database in seconds.

$ dotnet new ca-sln -cf react -db sqlserver -o .\MyApp

Run the app

One command starts your entire stack. Frontend, API, and database boot together. Nothing to install or configure.

$ cd MyApp && dotnet run --project .\src\AppHost

Ready to build better .NET applications?

Free, open source, and actively maintained. Installed 500+ times every day by .NET developers worldwide.