PouryaKit.Aspire 0.1.0-preview.2

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

PouryaKit.Aspire

NuGet .NET 10 License: MIT

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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