Clean.Architecture.Template.CSharp 1.0.4

dotnet new install Clean.Architecture.Template.CSharp::1.0.4
                    
This package contains a .NET Template Package you can call from the shell/command line.

Clear Architecture Solution Template

This template provides a seamless solution by integrating the benefits of Clean Architecture with ASP.NET Core. It allows you to swiftly create an ASP.NET Core Web API, adhering to Clean Architecture principles. The template is pre-configured to use SQL Server, and upon running the application, the database will be automatically created, with the latest migrations applied.

If you find this project useful, please give it a star. Thanks! ⭐

Technologies

.NET 8 EF Core 8 Serilog Mediatr Fluent Validation MailTrap

Getting Started

The following prerequisites are required to build and run the solution:

Run the following command to install the .NET template from NuGet

dotnet new install Clean.Architecture.Template.CSharp::1.0.3

Once installed, create a new solution using this template

dotnet new ca-sln -o "<Name of the project>"

To create a new feature by navigate into the root folder & run the below command

dotnet new ca-feat --ProjectName "<Name of the project>" --FeatureName "<Name of the feature>"

dotnet new list - Lists available templates to be run using dotnet new.

dotnet new uninstall - Uninstalls the template

Configurations

Once the solution is created, go to appsettings.json file & update the followings

Database (MSSQL Server)

"ConnectionStrings" section with your connection string.

Email (MailTrap)

"EmailSettings" section with your MailTrap details.

  • .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.0.4 132 1/19/2026
1.0.3 339 9/22/2025
1.0.2 352 5/8/2025