MinimalCleanArch.Validation
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.Validation --version 0.1.7
NuGet\Install-Package MinimalCleanArch.Validation -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.Validation" Version="0.1.7" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MinimalCleanArch.Validation" Version="0.1.7" />
<PackageReference Include="MinimalCleanArch.Validation" />
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.Validation --version 0.1.7
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: MinimalCleanArch.Validation, 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.Validation@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.Validation&version=0.1.7
#tool nuget:?package=MinimalCleanArch.Validation&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
- FluentValidation (>= 12.0.0)
- FluentValidation.AspNetCore (>= 11.3.0)
- FluentValidation.DependencyInjectionExtensions (>= 12.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.5)
- MinimalCleanArch (>= 0.1.7)
- MinimalCleanArch.Extensions (>= 0.1.7)
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 |
|---|---|---|
| 0.1.9-preview | 0 | 12/21/2025 |
| 0.1.8-preview | 206 | 12/15/2025 |
| 0.1.7 | 137 | 12/14/2025 |
| 0.1.7-preview | 397 | 12/11/2025 |
| 0.1.6 | 421 | 12/9/2025 |
| 0.1.6-preview | 456 | 12/9/2025 |
| 0.1.5 | 199 | 12/6/2025 |
| 0.1.4 | 214 | 5/26/2025 |
| 0.1.3 | 183 | 5/25/2025 |
| 0.1.2 | 184 | 5/25/2025 |
| 0.1.1 | 185 | 5/25/2025 |
| 0.0.1 | 134 | 5/25/2025 |