MinimalCleanArch 0.1.7

There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package MinimalCleanArch --version 0.1.7
                    
NuGet\Install-Package MinimalCleanArch -Version 0.1.7
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MinimalCleanArch" Version="0.1.7" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MinimalCleanArch" Version="0.1.7" />
                    
Directory.Packages.props
<PackageReference Include="MinimalCleanArch" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add MinimalCleanArch --version 0.1.7
                    
#r "nuget: MinimalCleanArch, 0.1.7"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package MinimalCleanArch@0.1.7
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=MinimalCleanArch&version=0.1.7
                    
Install as a Cake Addin
#tool nuget:?package=MinimalCleanArch&version=0.1.7
                    
Install as a Cake Tool

MinimalCleanArch

A comprehensive library for implementing Clean Architecture with Minimal APIs on .NET 9. It provides domain foundations, repositories, unit of work, specifications, security/encryption, and minimal-API extensions.

Core Features

  • Clean Architecture foundations (entities, repositories, unit of work, specifications, result pattern)
  • Minimal API extensions (validation wiring, standardized error handling, OpenAPI helpers)
  • Security & encryption (Data Protection/AES column encryption)
  • Soft delete & auditing (IsDeleted + auditing timestamps/users)
  • EF Core integration (repositories, unit of work, auditing/soft-delete filters)

Version & Templates

  • Current package version: 0.1.7 (targets .NET 9).
  • Templates: dotnet new install MinimalCleanArch.Templates (or local nupkg), then dotnet new mca -n MyApp (multi-project) or --single-project.
  • Launch defaults: Swagger, randomized ports 5000–8000; adjust Properties/launchSettings.json if needed.
  • Using local nupkgs? Add a nuget.config with your local feed (e.g., artifacts/nuget) before restoring.

Packages

Package Description
MinimalCleanArch Core interfaces and base classes (Entities, Repositories, Specifications, Result pattern).
MinimalCleanArch.DataAccess EF Core implementation (DbContextBase, Repository, UnitOfWork, SpecificationEvaluator).
MinimalCleanArch.Extensions Minimal API enhancements (validation filters, error handling, standard responses).
MinimalCleanArch.Validation FluentValidation integration components (often used via Extensions).
MinimalCleanArch.Security Data encryption services (AES, Data Protection) and EF Core integration.
MinimalCleanArch.Messaging Domain events/messaging helpers and Wolverine integration.
MinimalCleanArch.Audit Audit logging components.
MinimalCleanArch.Templates dotnet new mca templates (single- or multi-project, clean architecture).

Quick Start (short)

  • Scaffold with the template:
    dotnet new install MinimalCleanArch.Templates
    dotnet new mca -n MyApp              # multi-project
    dotnet new mca -n MyApp --single-project
    
  • Or install packages directly:
    dotnet add package MinimalCleanArch
    dotnet add package MinimalCleanArch.DataAccess
    dotnet add package MinimalCleanArch.Extensions
    dotnet add package MinimalCleanArch.Security
    dotnet add package MinimalCleanArch.Validation
    dotnet add package MinimalCleanArch.Messaging
    dotnet add package MinimalCleanArch.Audit
    
  • Then follow the per-package guides (links above) for setup specifics.

Documentation map

Sample Application

Contributing

Contributions are welcome! Please read CONTRIBUTING.md.

License

MIT License. See LICENSE.

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net9.0

    • No dependencies.

NuGet packages (5)

Showing the top 5 NuGet packages that depend on MinimalCleanArch:

Package Downloads
MinimalCleanArch.Extensions

Extensions for Minimal API endpoints, including validation filters, error handling, logging, health checks, and standard response definitions.

MinimalCleanArch.DataAccess

Entity Framework Core implementation for MinimalCleanArch

MinimalCleanArch.Validation

Validation components for MinimalCleanArch using FluentValidation, including extensions for service registration.

MinimalCleanArch.Audit

Optional audit logging package for MinimalCleanArch. Provides audit log tables, change history tracking, and audit query services. Opt-in feature - only adds overhead when explicitly enabled.

MinimalCleanArch.Messaging

Messaging and event-driven architecture for MinimalCleanArch using Wolverine. Includes domain events, transactional outbox, and background job processing.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.9-preview 63 12/21/2025
0.1.8-preview 276 12/15/2025
0.1.7 206 12/14/2025
0.1.7-preview 459 12/11/2025
0.1.6 478 12/9/2025
0.1.6-preview 572 12/9/2025
0.1.5 242 12/6/2025
0.1.4 218 5/26/2025
0.1.3 211 5/25/2025
0.1.2 203 5/25/2025
0.1.1 224 5/25/2025
0.0.1 178 5/25/2025