Truss.Generators
0.3.2
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Truss.Generators --version 0.3.2
NuGet\Install-Package Truss.Generators -Version 0.3.2
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="Truss.Generators" Version="0.3.2"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Truss.Generators" Version="0.3.2" />
<PackageReference Include="Truss.Generators"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
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 Truss.Generators --version 0.3.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Truss.Generators, 0.3.2"
#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 Truss.Generators@0.3.2
#: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=Truss.Generators&version=0.3.2
#tool nuget:?package=Truss.Generators&version=0.3.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Truss
Truss is a modular .NET framework for building applications with DDD, CQRS and Clean Architecture, focused on developer experience, explicit behavior and minimal dependencies per layer.
Full documentation: https://joaoaalves.github.io/Truss
Early development. APIs are subject to change until v1.
Packages
| Package | Purpose | Layer |
|---|---|---|
Truss.Domain |
Entities, aggregate roots, value objects, typed ids, business rules, domain events. Zero dependencies. | Domain |
Truss.Application.Abstractions |
Contracts for commands, queries, handlers, pipeline behaviors and unit of work. | Application |
Truss.Application |
Dispatcher, validation pipeline and handler registration. | Application / Composition root |
Truss.Persistence.EntityFrameworkCore |
EF Core unit of work with automatic commit and domain event dispatching. | Infrastructure |
Truss.AspNetCore |
Endpoint mapping for commands and queries with automatic ProblemDetails responses. | API / Host |
Truss.Generators |
Compile-time handler discovery and dispatch, missing handlers as build diagnostics. | Build (dev dependency) |
Truss.Messaging.Abstractions |
Contracts for integration events, handlers and the publisher. | Application |
Truss.Messaging |
Versioned JSON serialization, outbox runtime, transport seam, in-memory transport. | Infrastructure |
Truss.Messaging.EntityFrameworkCore |
Transactional outbox stored through EF Core. | Infrastructure |
Truss.Messaging.Postgres |
Durable Postgres transport: SKIP LOCKED queue with LISTEN/NOTIFY wake-up. | Infrastructure |
Truss.Messaging.RabbitMq |
Durable RabbitMQ transport: quorum queues with publisher confirms and broker-side dead-lettering. | Infrastructure |
Truss.Messaging.Redis |
Durable Redis transport over Streams with consumer groups. | Infrastructure |
Truss.Jobs.Abstractions |
Contracts for background jobs, scheduling and monitoring. | Application |
Truss.Jobs |
Job runtime: transactional enqueueing, retry, timeout, scheduled and recurring jobs. | Infrastructure |
Truss.Jobs.EntityFrameworkCore |
Job records persisted in the application database. | Infrastructure |
Truss.Jobs.AspNetCore |
Progress endpoints: polling and server-sent events. | API / Host |
Truss.Observability |
Structured request logging, spans, metrics and ambient correlation. | Cross-cutting |
Truss.Observability.AspNetCore |
Correlation middleware bridging HTTP headers. | API / Host |
Truss.Observability.OpenTelemetry |
OTLP export of the framework's traces, metrics and logs in one registration. | API / Host |
Truss.Testing |
Integration test host: pipeline, throwaway database, transport and jobs in one call. | Tests |
Truss.Cli |
The truss command line: scaffolding, module installation, code generation. |
Tooling (dotnet tool) |
Truss.Mapping |
Compile-time DTO mappers with typed id unwrapping and unmapped members as build errors. | Build (dev dependency) |
Truss.Auth.Abstractions |
Contracts for password hashing and token issuing. | Application |
Truss.Auth.Jwt |
PBKDF2 hashing, JWT issuing and JwtBearer wiring; the user model is scaffolded into your domain. | API / Host |
Truss.Email.Abstractions |
Contracts for sending email from the application layer. | Application |
Truss.Email |
SMTP sender through MailKit and a console sender for development. | API / Host |
Truss.Email.Resend |
Delivery through the Resend API behind the same sender abstraction. | API / Host |
Truss.Tenancy.Abstractions |
The ambient tenant context, readable anywhere. | Application |
Truss.Tenancy.EntityFrameworkCore |
Row-level isolation: shadow column, query filter and automatic stamping. | Infrastructure |
Truss.Tenancy.AspNetCore |
Tenant resolution from claims, headers or a custom strategy. | API / Host |
Truss.Rbac |
Roles in code mapping to permissions, RequirePermission and claims enrichment. | API / Host |
Truss.Rbac.EntityFrameworkCore |
Role assignments persisted in the application database. | Infrastructure |
Principles
- Explicit over implicit. No hidden conventions, no runtime magic.
- Minimal dependencies per layer. The domain layer depends on nothing; the application layer never sees the ORM.
- Developer experience first. Commands validate themselves, the unit of work commits automatically, domain events dispatch at the right moment.
- Failure transparency. Exceptions propagate with their original stack trace.
There are no supported framework assets in this package.
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
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.5.2 | 91 | 8/26/2026 |
| 0.5.1 | 94 | 8/26/2026 |
| 0.5.0 | 98 | 8/25/2026 |
| 0.4.0 | 189 | 8/10/2026 |
| 0.3.8 | 100 | 8/10/2026 |
| 0.3.7 | 100 | 8/10/2026 |
| 0.3.6 | 95 | 8/10/2026 |
| 0.3.5 | 97 | 8/10/2026 |
| 0.3.4 | 103 | 8/8/2026 |
| 0.3.3 | 103 | 8/8/2026 |
| 0.3.2 | 101 | 8/8/2026 |
| 0.3.1 | 105 | 8/7/2026 |
| 0.3.0 | 99 | 8/7/2026 |
| 0.2.0 | 101 | 8/6/2026 |
| 0.1.0 | 102 | 8/5/2026 |