Aspire.Hosting.AppHost
17.0.0
Prefix Reserved
dotnet add package Aspire.Hosting.AppHost --version 17.0.0
NuGet\Install-Package Aspire.Hosting.AppHost -Version 17.0.0
<PackageReference Include="Aspire.Hosting.AppHost" Version="17.0.0" />
<PackageVersion Include="Aspire.Hosting.AppHost" Version="17.0.0" />
<PackageReference Include="Aspire.Hosting.AppHost" />
paket add Aspire.Hosting.AppHost --version 17.0.0
#r "nuget: Aspire.Hosting.AppHost, 17.0.0"
#:package Aspire.Hosting.AppHost@17.0.0
#addin nuget:?package=Aspire.Hosting.AppHost&version=17.0.0
#tool nuget:?package=Aspire.Hosting.AppHost&version=17.0.0
Aspire.Hosting.AppHost library
Provides the core APIs and MSBuild logic for Aspire AppHost projects.
Getting started
Install the package
In your project, install the Aspire AppHost library with NuGet:
dotnet add package Aspire.Hosting.AppHost
dotnet add package Aspire.Hosting.Dotnet
Usage example
Aspire.Hosting.AppHost supplies AppHost APIs and targets. Aspire.Hosting.Dotnet supplies
AddDotnetProject; the AppHost package alone does not include that integration.
Then, in the AppHost.cs file of AppHost, add a .NET project resource by its actual path:
var builder = DistributedApplication.CreateBuilder(args);
var app = builder.AddDotnetProject("myapp", "../MyApp/MyApp.csproj");
builder.Build().Run();
The path is relative to the AppHost directory. Ordinary path-based services do not need a
resource ProjectReference; V2 coordinates their builds when running. An AppHost-only build
does not build removed service references. See the AddProject migration guide
for typed resources, launch profiles, and retained legacy exceptions, and the
SDK migration guide for project configuration.
Additional documentation
Feedback & contributing
| 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. net11.0 is compatible. |
-
net10.0
- Aspire.Hosting (>= 17.0.0)
- AspNetCore.HealthChecks.Uris (>= 9.0.0)
- Google.Protobuf (>= 3.36.1)
- Grpc.AspNetCore (>= 2.83.0)
- Grpc.Net.ClientFactory (>= 2.83.0)
- Grpc.Tools (>= 2.83.0)
- Hex1b (>= 0.173.0)
- KubernetesClient (>= 19.0.2)
- MessagePack (>= 2.5.307)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.15)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.15)
- Microsoft.Extensions.Configuration.EnvironmentVariables (>= 10.0.15)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.15)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 10.0.15)
- Microsoft.Extensions.FileSystemGlobbing (>= 10.0.15)
- Microsoft.Extensions.Hosting (>= 10.0.15)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.15)
- Microsoft.Extensions.Http (>= 10.0.15)
- Microsoft.Extensions.Logging (>= 10.0.15)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.15)
- Microsoft.Extensions.Options (>= 10.0.15)
- Microsoft.Extensions.Primitives (>= 10.0.15)
- ModelContextProtocol (>= 1.4.1)
- Newtonsoft.Json (>= 13.0.4)
- OpenTelemetry.Exporter.OpenTelemetryProtocol (>= 1.18.0)
- OpenTelemetry.Extensions.Hosting (>= 1.18.0)
- Polly.Core (>= 8.7.0)
- Semver (>= 3.0.0)
- StreamJsonRpc (>= 2.25.29)
- System.IO.Hashing (>= 10.0.15)
- YamlDotNet (>= 18.1.0)
-
net11.0
- Aspire.Hosting (>= 17.0.0)
- AspNetCore.HealthChecks.Uris (>= 9.0.0)
- Google.Protobuf (>= 3.36.1)
- Grpc.AspNetCore (>= 2.83.0)
- Grpc.Net.ClientFactory (>= 2.83.0)
- Grpc.Tools (>= 2.83.0)
- Hex1b (>= 0.173.0)
- KubernetesClient (>= 19.0.2)
- MessagePack (>= 2.5.307)
- Microsoft.Extensions.Configuration.Binder (>= 11.0.0)
- Microsoft.Extensions.Configuration.EnvironmentVariables (>= 11.0.0)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 11.0.0)
- Microsoft.Extensions.FileSystemGlobbing (>= 11.0.0)
- Microsoft.Extensions.Hosting (>= 11.0.0)
- Microsoft.Extensions.Http (>= 11.0.0)
- Microsoft.Extensions.Logging (>= 11.0.0)
- ModelContextProtocol (>= 1.4.1)
- Newtonsoft.Json (>= 13.0.4)
- OpenTelemetry.Exporter.OpenTelemetryProtocol (>= 1.18.0)
- OpenTelemetry.Extensions.Hosting (>= 1.18.0)
- Polly.Core (>= 8.7.0)
- Semver (>= 3.0.0)
- StreamJsonRpc (>= 2.25.29)
- System.IO.Hashing (>= 11.0.0)
- YamlDotNet (>= 18.1.0)
NuGet packages (60)
Showing the top 5 NuGet packages that depend on Aspire.Hosting.AppHost:
| Package | Downloads |
|---|---|
|
Aspire.Hosting.Testing
Testing support for the Aspire application model. |
|
|
InfinityFlow.Aspire.Temporal
Aspire extension to start the temporal cli dev server as an container or executable resource. Only container is well-supported currently. |
|
|
AzureKeyVaultEmulator.Aspire.Hosting
.NET Aspire AppHost support for the Azure KeyVault Emulator |
|
|
AJP.Aspire.Hosting.AsbEmulatorUi
A UI for the ASB Emulator, view entities, message counts, send, peek and receive messages, canned Messages, also API for automated testing. |
|
|
FonsecaFramework.Aspire
Collection of classes and extensions for .NET Aspire |
GitHub repositories (96)
Showing the top 20 popular GitHub repositories that depend on Aspire.Hosting.AppHost:
| Repository | Stars |
|---|---|
|
microsoft/semantic-kernel
Integrate cutting-edge LLM technology quickly and easily into your apps
|
|
|
jasontaylordev/CleanArchitecture
Clean Architecture Solution Template for ASP.NET Core
|
|
|
ardalis/CleanArchitecture
Clean Architecture Solution Template: A proven Clean Architecture Template for ASP.NET Core 10
|
|
|
dotnet/AspNetCore.Docs
Documentation for ASP.NET Core
|
|
|
dotnet/orleans
Cloud Native application framework for .NET
|
|
|
ChilliCream/graphql-platform
Welcome to the home of the Hot Chocolate GraphQL server for .NET, the Strawberry Shake GraphQL client for .NET and Nitro the awesome Monaco based GraphQL IDE.
|
|
|
microsoft/fluentui-blazor
Microsoft Fluent UI Blazor components library. For use with ASP.NET Core Blazor applications
|
|
|
thomhurst/TUnit
A modern, fast and flexible .NET testing framework
|
|
|
dotnet/samples
Sample code referenced by the .NET documentation
|
|
|
dotnet/maui-samples
Samples for .NET Multi-Platform App UI (.NET MAUI)
|
|
|
evolutionary-architecture/evolutionary-architecture-by-example
Navigate the complex landscape of .NET software architecture with our step-by-step, story-like guide. Unpack the interplay between modular monoliths, microservices, domain-driven design, and various architectural patterns. Go beyond the one-size-fits-all solutions and understand how to blend these approaches based on your unique needs.
|
|
|
JasperFx/marten
.NET Transactional Document DB and Event Store on PostgreSQL
|
|
|
dotnet/extensions
This repository contains a suite of libraries that provide facilities commonly needed when creating production-ready applications.
|
|
|
microsoft/Generative-AI-for-beginners-dotnet
Five lessons, learn how to really apply AI to your .NET Applications
|
|
|
dotnet/sdk
Core functionality needed to create .NET projects, that is shared between Visual Studio and CLI
|
|
|
SciSharp/BotSharp
AI Multi-Agent Framework in .NET
|
|
|
BrighterCommand/Brighter
A framework for building messaging apps with .NET and C#.
|
|
|
Nethereum/Nethereum
Ethereum .Net cross platform integration library
|
|
|
dluc/kernel-memory
Research project. A Memory solution for users, teams, and applications.
|
|
|
aptabase/aptabase
✨ Open Source, Privacy-First and Simple Analytics for Mobile, Desktop and Web Apps
|
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 17.0.0 | 453,178 | 11/18/2026 | |
| 13.6.5 | 2,024,460 | 11/10/2026 | |
| 13.6.4 | 903,772 | 10/24/2026 | |
| 13.6.3 | 195,098 | 10/21/2026 | |
| 13.6.2 | 117,515 | 10/20/2026 | |
| 13.6.1 | 1,067,936 | 10/7/2026 | |
| 13.6.0 | 636,918 | 9/29/2026 | |
| 13.5.4 | 982,297 | 9/15/2026 | |
| 13.5.3 | 1,467,069 | 8/25/2026 | |
| 13.5.2 | 276,318 | 8/21/2026 | |
| 13.5.1 | 98,338 | 8/20/2026 | |
| 13.5.0 | 231,884 | 8/18/2026 | |
| 13.4.6 | 4,532,225 | 6/19/2026 | |
| 13.4.5 | 403,194 | 6/17/2026 | |
| 13.4.4 | 297,088 | 6/15/2026 | |
| 13.4.3 | 1,117,650 | 6/8/2026 | |
| 13.4.2 | 451,655 | 6/3/2026 | |
| 13.4.1 | 19,360 | 6/3/2026 | |
| 13.4.0 | 304,496 | 6/1/2026 | |
| 13.3.5 | 972,376 | 5/21/2026 |