Trellis.Asp
3.0.0-alpha.304
dotnet add package Trellis.Asp --version 3.0.0-alpha.304
NuGet\Install-Package Trellis.Asp -Version 3.0.0-alpha.304
<PackageReference Include="Trellis.Asp" Version="3.0.0-alpha.304" />
<PackageVersion Include="Trellis.Asp" Version="3.0.0-alpha.304" />
<PackageReference Include="Trellis.Asp" />
paket add Trellis.Asp --version 3.0.0-alpha.304
#r "nuget: Trellis.Asp, 3.0.0-alpha.304"
#:package Trellis.Asp@3.0.0-alpha.304
#addin nuget:?package=Trellis.Asp&version=3.0.0-alpha.304&prerelease
#tool nuget:?package=Trellis.Asp&version=3.0.0-alpha.304&prerelease
Trellis.Asp
ASP.NET Core integration for Trellis results, scalar value validation, and clean HTTP responses.
Installation
dotnet add package Trellis.Asp
Quick Example
using Trellis;
using Trellis.Asp;
builder.Services.AddTrellisAsp();
app.MapGet("/widgets/{id}", (string id) =>
Result.Ok(id).ToHttpResponse());
Key Features
- Convert
Result<T>andErrorvalues into consistent HTTP responses. - Validate Trellis scalar values during model binding and JSON deserialization.
- Support controller and minimal API styles, including AOT-friendly setups.
- Emit RFC 9457 Problem Details with
instancepopulated from the request path so clients can correlate failures with the originating request.
Documentation
Part of Trellis
This package is part of the Trellis framework.
| 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. |
-
net10.0
- Microsoft.Extensions.DependencyModel (>= 10.0.7)
- Trellis.Authorization (>= 3.0.0-alpha.304)
- Trellis.Core (>= 3.0.0-alpha.304)
- Trellis.Http.Abstractions (>= 3.0.0-alpha.304)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Trellis.Asp:
| Package | Downloads |
|---|---|
|
Trellis.Asp.ApiVersioning
API-versioning helpers for Trellis.Asp. Adds a WithVersionedRoute() extension on HttpResponseOptionsBuilder that auto-injects the api-version route value into Location headers, so responses round-trip the requested version under query/header API versioning. Chain after CreatedAtRoute(...), CreatedAtAction(...), or WithLocation(...). Skips injection for [ApiVersionNeutral] and URL-segment-versioned endpoints. |
|
|
Trellis.ServiceDefaults
Opinionated service composition defaults for Trellis web services. Provides a tiered builder that wires ASP integration, Mediator behaviors, FluentValidation, resource authorization, actor providers, and EF Core Unit of Work in canonical order. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.0.0-alpha.304 | 55 | 5/29/2026 |
| 3.0.0-alpha.303 | 41 | 5/29/2026 |
| 3.0.0-alpha.158 | 106 | 4/5/2026 |
| 3.0.0-alpha.157 | 69 | 4/4/2026 |
| 3.0.0-alpha.140 | 71 | 3/30/2026 |
| 3.0.0-alpha.137 | 76 | 3/27/2026 |
| 3.0.0-alpha.135 | 60 | 3/26/2026 |
| 3.0.0-alpha.127 | 73 | 3/23/2026 |
| 3.0.0-alpha.123 | 63 | 3/19/2026 |
| 3.0.0-alpha.118 | 74 | 3/14/2026 |
| 3.0.0-alpha.111 | 62 | 3/12/2026 |
| 3.0.0-alpha.104 | 79 | 3/9/2026 |
| 3.0.0-alpha.100 | 64 | 3/4/2026 |
| 3.0.0-alpha.99 | 54 | 3/4/2026 |
| 3.0.0-alpha.98 | 64 | 3/3/2026 |
| 3.0.0-alpha.95 | 65 | 3/2/2026 |
| 3.0.0-alpha.94 | 56 | 3/2/2026 |
| 3.0.0-alpha.93 | 64 | 3/1/2026 |
| 3.0.0-alpha.92 | 90 | 2/28/2026 |
| 3.0.0-alpha.83 | 64 | 2/27/2026 |