PouryaKit.Aspire
0.1.0-preview.2
dotnet add package PouryaKit.Aspire --version 0.1.0-preview.2
NuGet\Install-Package PouryaKit.Aspire -Version 0.1.0-preview.2
<PackageReference Include="PouryaKit.Aspire" Version="0.1.0-preview.2" />
<PackageVersion Include="PouryaKit.Aspire" Version="0.1.0-preview.2" />
<PackageReference Include="PouryaKit.Aspire" />
paket add PouryaKit.Aspire --version 0.1.0-preview.2
#r "nuget: PouryaKit.Aspire, 0.1.0-preview.2"
#:package PouryaKit.Aspire@0.1.0-preview.2
#addin nuget:?package=PouryaKit.Aspire&version=0.1.0-preview.2&prerelease
#tool nuget:?package=PouryaKit.Aspire&version=0.1.0-preview.2&prerelease

PouryaKit.Aspire
The containers a Kit Host runs on locally, for an Aspire AppHost and nothing else. It adds PostgreSQL, Redis, RabbitMQ and Ollama, each pinned to the image tag the Kit's own tests run, with its data in a named volume that outlives a run.
Install
dotnet add package PouryaKit.Aspire --prerelease
When to use it
- You run the application's Hosts and their infrastructure locally with Aspire.
- You give each Host the database, cache and broker its composition uses, under its connection names.
- You run an agent against a local model, or test the AppHost headless.
It references no other Kit package and reaches no other package's closure, so keep it out of your Hosts' own projects. An AppHost also runs the Reverse proxy of PouryaKit.ReverseProxy in front of them.
Quick start
Add the resources the compositions use, then give each Host its own, as the Proving Sample's AppHost does (each Host also takes its bearer settings):
var postgres = builder.AddPouryaKitPostgres("postgres");
var cache = builder.AddPouryaKitRedis("cache");
var broker = builder.AddPouryaKitRabbitMq("broker");
var shop = postgres.AddDatabase("modular-monolith-db", "modular_monolith");
var inventory = postgres.AddDatabase("inventory-db", "inventory");
var inventoryHost = builder
.AddProject<Projects.Inventory_Host>("inventory")
.WithHttpEndpoint()
.WithHttpHealthCheck("/alive")
.WithReference(inventory, "app")
.WithReference(broker)
.WaitFor(inventory)
.WaitFor(broker);
What you get
- Each image pinned to the tag the Kit's tests run.
- A named volume per resource, which outlives a run, so data persists between runs.
- Nothing of Aspire in any other Kit package's closure.
The AppHost applies no migration. The databases it creates hold no table of an EF Core Module until you apply each Module's migrations to them, and no Host applies one at start.
Learn more
| 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
- Aspire.Hosting.PostgreSQL (>= 13.6.4)
- Aspire.Hosting.RabbitMQ (>= 13.6.4)
- Aspire.Hosting.Redis (>= 13.6.4)
- Fractions (>= 8.3.2)
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.0-preview.2 | 69 | 11/1/2026 |
| 0.1.0-preview.1 | 69 | 10/31/2026 |
| 0.1.0-preview.0.28 | 66 | 10/26/2026 |