Aspire.Hosting.Kafka 13.6.4

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

Apache Kafka hosting integration

Use this integration to model, configure, and orchestrate a Kafka resource in an Aspire solution.

Getting started

Add the integration

From your AppHost directory, add the Aspire.Hosting.Kafka integration with the Aspire CLI:

aspire add Aspire.Hosting.Kafka

Usage example

In the AppHost, add a Kafka resource and reference it from another resource with either C# or TypeScript:

C#

var kafka = builder.AddKafka("messaging");

var myService = builder.AddProject<Projects.MyService>()
                       .WithReference(kafka);

TypeScript

const kafka = await builder.addKafka("messaging");

const myService = await builder.addNodeApp("myService", "../my-service", "server.js")
                       .withReference(kafka);

Connection Properties

When you reference a Kafka resource using WithReference, the following connection properties are made available to the consuming project:

Kafka server

The Kafka server resource exposes the following connection properties:

Property Name Description
Host The host-facing Kafka listener hostname or IP address
Port The host-facing Kafka listener port

Aspire exposes each property as an environment variable named [RESOURCE]_[PROPERTY]. For instance, the Uri property of a resource called messaging becomes MESSAGING_URI.

Additional documentation

Feedback & contributing

https://github.com/microsoft/aspire

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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 (3)

Showing the top 3 NuGet packages that depend on Aspire.Hosting.Kafka:

Package Downloads
Girvs.Aspire.Hosting

Package Description

Shirubasoft.Aspire.Extensions.Kafka

Schema Registry and topic resources for Aspire Kafka AppHosts.

Mack.Aspire.Hosting.SchemaRegistry

Package Description

GitHub repositories (5)

Showing the top 5 popular GitHub repositories that depend on Aspire.Hosting.Kafka:

Repository Stars
oskardudycz/EventSourcing.NetCore
Examples and Tutorials of Event Sourcing in .NET
JasperFx/wolverine
Supercharged .NET server side development!
foxminchan/BookWorm
An Aspire reference architecture for cloud-native microservices and agentic AI with MCP, A2A & AG-UI
daohainam/microservice-patterns
Microservice pattern demos (Saga, EventSourcing, CQRS...) running on .NET Aspire
PacktPublishing/Pragmatic-Microservices-with-CSharp-and-Azure
Pragmatic Microservices with C# and Azure, published by Packt
Version Downloads Last Updated
13.6.4 3,041 10/24/2026
13.6.3 6,200 10/21/2026
13.6.2 2,311 10/20/2026
13.6.1 22,713 10/7/2026
13.6.0 22,325 9/29/2026
13.5.4 40,258 9/15/2026
13.5.3 61,195 8/25/2026
13.5.2 12,143 8/21/2026
13.5.1 3,940 8/20/2026
13.5.0 18,640 8/18/2026
13.4.6 165,230 6/19/2026
13.4.5 11,644 6/17/2026
13.4.4 26,542 6/15/2026
13.4.3 13,659 6/8/2026
13.4.2 17,149 6/3/2026
13.4.1 888 6/3/2026
13.4.0 25,143 6/1/2026
13.3.5 38,887 5/21/2026
13.3.4 2,503 5/19/2026
13.3.3 18,633 5/15/2026
Loading failed