Pragmatic.Abstractions 1.0.0-alpha.6

This is a prerelease version of Pragmatic.Abstractions.
dotnet add package Pragmatic.Abstractions --version 1.0.0-alpha.6
                    
NuGet\Install-Package Pragmatic.Abstractions -Version 1.0.0-alpha.6
                    
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="Pragmatic.Abstractions" Version="1.0.0-alpha.6" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Pragmatic.Abstractions" Version="1.0.0-alpha.6" />
                    
Directory.Packages.props
<PackageReference Include="Pragmatic.Abstractions" />
                    
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 Pragmatic.Abstractions --version 1.0.0-alpha.6
                    
#r "nuget: Pragmatic.Abstractions, 1.0.0-alpha.6"
                    
#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 Pragmatic.Abstractions@1.0.0-alpha.6
                    
#: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=Pragmatic.Abstractions&version=1.0.0-alpha.6&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Pragmatic.Abstractions&version=1.0.0-alpha.6&prerelease
                    
Install as a Cake Tool

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 ICurrentUser for auditing; Identity needs IRepository for 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, or DbContext, 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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