Skip to content

Overview

The Clean Architecture Solution Template is a .NET template for ASP.NET Core that implements Clean Architecture principles. It gives you a production-ready starting point so you can focus on building features, not boilerplate.

Clean Architecture separates code into distinct layers with strict dependency rules, keeping business logic independent of frameworks, databases, and UI concerns.

Running dotnet new ca-sln scaffolds a complete multi-project solution:

ProjectTypeDescription
DomainClass LibraryEncapsulates core business logic and rules
ApplicationClass LibraryDefines use cases and orchestrates business operations
InfrastructureClass LibraryImplements persistence and external service integrations
WebASP.NET Core Web APIExposes the API and handles authentication
Web/ClientApp (optional)Angular or ReactFrontend project, included when a UI framework is selected

The template is designed for .NET developers who:

  • Are starting a new enterprise application and want a solid foundation
  • Want to apply Clean Architecture without spending days wiring up infrastructure
  • Value testability, maintainability, and separation of concerns
  • Want to deploy anywhere—Kubernetes, cloud, or on-prem—with minimal configuration