CodeCraft.NET.CleanArchitecture.Template
1.1.5
The owner has unlisted this package.
This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet new install CodeCraft.NET.CleanArchitecture.Template@1.1.5
This package contains a .NET Template Package you can call from the shell/command line.
CodeCraft.NET Clean Architecture Template
A Clean Architecture template for .NET 9 with CQRS and automatic code generation.
Installation
dotnet new install CodeCraft.NET.CleanArchitecture.Template
Usage
# Create new project
dotnet new codecraft -n "MyProject"
cd MyProject
# Build and run
dotnet build
dotnet run --project MyProject.WebAPI
Development Workflow
Building and Packaging
# Build solution and create template package (patch version)
.\build.ps1
# Create new minor version (new features)
.\build.ps1 -Minor
# Create new major version (breaking changes)
.\build.ps1 -Major
# Publish to NuGet
.\build.ps1 -PublishToNuGet -ApiKey YOUR_API_KEY
Semantic Versioning
- PATCH (default): Bug fixes and minor updates
- MINOR (
-Minor): New features, backward compatible - MAJOR (
-Major): Breaking changes
Features
- Clean Architecture with proper layer separation
- CQRS + MediatR for scalable operations
- Entity Framework Core with SQL Server
- Automatic Code Generator for CRUD operations
- Swagger/OpenAPI documentation
Quick Start
- Create project:
dotnet new codecraft -n "MyProject" - Build:
dotnet build - Generate CRUD:
dotnet run --project MyProject.Generator - Run API:
dotnet run --project MyProject.WebAPI - Test: Navigate to
https://localhost:7202/swagger
Code Generator
The generator analyzes entities in Domain/Model/ and creates:
- CQRS commands and queries
- Controllers with CRUD endpoints
- Repository implementations
- EF Core DbContext and migrations
# Generate for all entities
dotnet run --project MyProject.Generator
# Clean generated files only
dotnet run clean --project MyProject.Generator
# Complete reset
dotnet run cleanAll --project MyProject.Generator
Architecture
- Domain: Entities and business logic
- Application: CQRS, DTOs, validation
- Infrastructure: Data access, repositories
- WebAPI: Controllers, configuration
- Generator: Code generation engine
License
MIT License
-
net9.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 |
|---|