Dorn.Templates.WebApi 1.1.0

dotnet new install Dorn.Templates.WebApi@1.1.0
                    
This package contains a .NET Template Package you can call from the shell/command line.

Dorn Clean Architecture Web API Template

Create a .NET 10 Clean Architecture Minimal API with CQRS, your persistence stack, and an optional local runtime.

🚀 Create and run

dotnet new install Dorn.Templates.WebApi
dotnet new dorn-webapi -n Acme.Orders
cd Acme.Orders
dotnet tool restore
dotnet build
dotnet dorn run

✨ What you get

  • Clean Architecture layering: Domain, Application, Infrastructure, WebApi
  • CQRS via commands, queries, and handlers
  • EF Core or Dapper persistence over SQLite, SQL Server, or PostgreSQL
  • Optional Aspire orchestration or Docker Compose with local observability
  • Optional JWT authentication: self-issued custom tokens or Azure AD/Entra ID validation
  • Application, Integration, Architecture, and Functional xUnit test tiers

⚙️ Options

Option Default Effect
--Auth <none\|custom\|azure-ad> none Authentication
--Orm <efcore\|dapper> efcore Persistence style
--DatabaseProvider <sqlite\|sqlserver\|postgres> sqlite Database
--Orchestrator <aspire\|docker-compose\|none> aspire Local runtime
--IncludeTests <bool> true Generated test projects

--Auth custom requires --Orm efcore; unsupported combinations stop at build time with an actionable error.

View source and full documentation

  • .NETStandard 2.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.1.0 117 9/1/2026
1.0.5 166 8/22/2026
1.0.4 137 8/22/2026
1.0.3 148 8/21/2026
1.0.2 157 8/17/2026
1.0.1 206 7/17/2026
1.0.0 194 7/14/2026