MinimalCleanArch.Extensions
0.1.7
There is a newer prerelease version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package MinimalCleanArch.Extensions --version 0.1.7
NuGet\Install-Package MinimalCleanArch.Extensions -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.Extensions" Version="0.1.7" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MinimalCleanArch.Extensions" Version="0.1.7" />
<PackageReference Include="MinimalCleanArch.Extensions" />
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.Extensions --version 0.1.7
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: MinimalCleanArch.Extensions, 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.Extensions@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.Extensions&version=0.1.7
#tool nuget:?package=MinimalCleanArch.Extensions&version=0.1.7
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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), thendotnet new mca -n MyApp(multi-project) or--single-project. - Launch defaults: Swagger, randomized ports 5000–8000; adjust
Properties/launchSettings.jsonif needed. - Using local nupkgs? Add a
nuget.configwith 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
- Core:
src/MinimalCleanArch/README.md - DataAccess:
src/MinimalCleanArch.DataAccess/README.md - Extensions:
src/MinimalCleanArch.Extensions/README.md - Validation:
src/MinimalCleanArch.Validation/README.md - Security:
src/MinimalCleanArch.Security/README.md - Messaging:
src/MinimalCleanArch.Messaging/README.md - Audit:
src/MinimalCleanArch.Audit/README.md - Templates:
templates/README.md - Sample app:
samples/MinimalCleanArch.Sample/README.md
Sample Application
Contributing
Contributions are welcome! Please read CONTRIBUTING.md.
License
MIT License. See LICENSE.
| Product | Versions 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
- Asp.Versioning.Http (>= 8.1.0)
- FluentValidation (>= 12.0.0)
- FluentValidation.AspNetCore (>= 11.3.0)
- FluentValidation.DependencyInjectionExtensions (>= 12.0.0)
- Microsoft.AspNetCore.OpenApi (>= 9.0.5)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.5)
- Microsoft.OpenApi (>= 1.6.22)
- MinimalCleanArch (>= 0.1.7)
- OpenTelemetry.Exporter.Console (>= 1.10.0)
- OpenTelemetry.Exporter.OpenTelemetryProtocol (>= 1.10.0)
- OpenTelemetry.Extensions.Hosting (>= 1.10.0)
- OpenTelemetry.Instrumentation.AspNetCore (>= 1.10.1)
- OpenTelemetry.Instrumentation.Http (>= 1.10.0)
- OpenTelemetry.Instrumentation.Runtime (>= 1.10.0)
- Serilog.AspNetCore (>= 9.0.0)
- Serilog.Enrichers.Environment (>= 3.0.1)
- Serilog.Enrichers.Thread (>= 4.0.0)
- Serilog.Sinks.Console (>= 6.0.0)
- Serilog.Sinks.File (>= 6.0.0)
- Swashbuckle.AspNetCore (>= 7.2.0)
- Swashbuckle.AspNetCore.Annotations (>= 7.2.0)
- Swashbuckle.AspNetCore.SwaggerGen (>= 7.2.0)
- System.Threading.RateLimiting (>= 9.0.5)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on MinimalCleanArch.Extensions:
| Package | Downloads |
|---|---|
|
MinimalCleanArch.Validation
Validation components for MinimalCleanArch using FluentValidation, including extensions for service registration. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.8-preview | 186 | 12/15/2025 |
| 0.1.7 | 153 | 12/14/2025 |
| 0.1.7-preview | 409 | 12/11/2025 |
| 0.1.6 | 428 | 12/9/2025 |
| 0.1.6-preview | 483 | 12/9/2025 |
| 0.1.5 | 219 | 12/6/2025 |
| 0.1.4 | 205 | 5/26/2025 |
| 0.1.3 | 199 | 5/25/2025 |
| 0.1.2 | 194 | 5/25/2025 |
| 0.1.1 | 199 | 5/25/2025 |
| 0.0.1 | 148 | 5/25/2025 |