Pragmatic.Abstractions
1.0.0-alpha.6
dotnet add package Pragmatic.Abstractions --version 1.0.0-alpha.6
NuGet\Install-Package Pragmatic.Abstractions -Version 1.0.0-alpha.6
<PackageReference Include="Pragmatic.Abstractions" Version="1.0.0-alpha.6" />
<PackageVersion Include="Pragmatic.Abstractions" Version="1.0.0-alpha.6" />
<PackageReference Include="Pragmatic.Abstractions" />
paket add Pragmatic.Abstractions --version 1.0.0-alpha.6
#r "nuget: Pragmatic.Abstractions, 1.0.0-alpha.6"
#:package Pragmatic.Abstractions@1.0.0-alpha.6
#addin nuget:?package=Pragmatic.Abstractions&version=1.0.0-alpha.6&prerelease
#tool nuget:?package=Pragmatic.Abstractions&version=1.0.0-alpha.6&prerelease
Pragmatic.Abstractions
Cross-cutting contracts for the Pragmatic.Design ecosystem: pure interfaces, attributes, and records shared by all modules, with zero dependency on ASP.NET Core or EF Core. This is Layer 0.
The Problem
A modular framework needs shared contracts. Without a central home for them:
- Circular dependencies emerge: Persistence needs
ICurrentUserfor auditing; Identity needsIRepositoryfor user storage. If each module owns its interfaces, they depend on each other and the build fails. - Framework coupling spreads: if domain modules depend on
ClaimsPrincipal,HttpContext, orDbContext, they can't run in console apps, workers, tests, or non-HTTP hosts. - Interface duplication fragments the ecosystem: without one shared
ICurrentUser, every module defines its own, and a single DI registration can't satisfy all consumers.
The Solution
One lightweight package that every module references and that depends on (almost) nothing: only the contracts crossing module boundaries: interfaces, attributes, records, enums, null-object singletons.
Pragmatic.Abstractions (Layer 0)
▲
┌─────────────────┼──────────────────┐
Pragmatic.Actions Pragmatic.Events Pragmatic.Persistence
Pragmatic.Identity Pragmatic.Authorization …
No circular dependencies, no framework coupling, one interface per concept. You rarely reference it directly: it arrives transitively through the modules you use; reference it explicitly when you author a module that must expose or consume a cross-cutting contract.
Installation
dotnet add package Pragmatic.Abstractions
Status
Stable within 1.0.0-alpha: the contract surface is the ecosystem's foundation. See the roadmap.
Documentation
| Guide | What you'll learn |
|---|---|
| Concepts | Why Layer 0 exists, what belongs here, what doesn't |
| Getting Started | Referencing the contracts from a module |
| Interfaces | The full interface/attribute catalog + which module implements each |
| Design Principles | Layer dependency rules, framework-neutrality |
| Common Mistakes | The most frequent pitfalls |
| Troubleshooting | Problem/solution guide |
Requirements
- .NET 10.0+
License
Part of the Pragmatic.Design ecosystem. See Licensing. Pragmatic.Abstractions is MIT-licensed.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. 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. net11.0 is compatible. |
-
net10.0
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.10)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.10)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.10)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.10)
-
net11.0
- No dependencies.
NuGet packages (33)
Showing the top 5 NuGet packages that depend on Pragmatic.Abstractions:
| Package | Downloads |
|---|---|
|
Pragmatic.Internationalization
Unified internationalization library combining globalization (formatting) and localization (translations). Money type, currency codes, plural strings, relative time, and type-safe translations. |
|
|
Pragmatic.Result
High-performance Result pattern for railway-oriented programming. Zero allocation wrapper, type-safe errors, LINQ operations. |
|
|
Pragmatic.Events
Domain events infrastructure: IDomainEvent, handlers, dispatchers. Pure domain package, zero infrastructure dependencies. |
|
|
Pragmatic.Specification
Specification pattern for composable, reusable predicates. Works with IQueryable and IEnumerable. |
|
|
Pragmatic.Caching
Source-generated caching with typed keys, automatic invalidation, and HybridCache integration. Zero magic strings. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0-alpha.6 | 761 | 11/21/2026 |
| 1.0.0-alpha.5 | 696 | 11/21/2026 |
| 1.0.0-alpha.4 | 730 | 11/16/2026 |
| 1.0.0-alpha.3 | 974 | 10/17/2026 |
| 1.0.0-alpha.2 | 571 | 10/12/2026 |
| 1.0.0-alpha.1 | 797 | 10/3/2026 |