Aspire.Hosting.AppHost 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
No packages depend on Aspire.Hosting.AppHost.
.NET 10.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)
.NET 11.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)
| Version | Downloads | Last updated |
|---|---|---|
| 17.0.0 | 15 | 11/19/2026 |
| 13.6.5 | 21 | 11/10/2026 |
| 13.6.4 | 31 | 10/24/2026 |
| 13.6.3 | 26 | 10/21/2026 |
| 13.6.2 | 33 | 10/20/2026 |
| 13.6.1 | 33 | 10/07/2026 |
| 13.6.0 | 28 | 09/30/2026 |
| 13.5.4 | 32 | 09/17/2026 |
| 13.5.3 | 31 | 08/26/2026 |
| 13.5.2 | 33 | 08/22/2026 |
| 13.5.1 | 33 | 08/22/2026 |
| 13.5.0 | 30 | 08/19/2026 |
| 13.4.6 | 32 | 06/21/2026 |
| 13.4.5 | 34 | 06/17/2026 |
| 13.4.4 | 31 | 06/17/2026 |
| 13.4.3 | 33 | 06/10/2026 |
| 13.4.2 | 34 | 06/06/2026 |
| 13.4.1 | 32 | 06/06/2026 |
| 13.4.0 | 42 | 06/02/2026 |
| 13.3.5 | 36 | 05/23/2026 |
| 13.3.4 | 38 | 05/23/2026 |
| 13.3.3 | 40 | 05/17/2026 |
| 13.3.2 | 39 | 05/16/2026 |
| 13.3.1 | 41 | 05/15/2026 |
| 13.3.0 | 42 | 05/08/2026 |
| 13.2.4 | 50 | 04/27/2026 |
| 13.2.3 | 43 | 04/22/2026 |
| 13.2.2 | 56 | 04/11/2026 |
| 13.2.1 | 53 | 04/04/2026 |
| 13.2.0 | 49 | 03/24/2026 |
| 13.1.3 | 62 | 03/23/2026 |
| 13.1.2 | 48 | 02/27/2026 |
| 13.1.1 | 48 | 02/12/2026 |
| 13.1.0 | 57 | 12/18/2025 |
| 13.0.2 | 49 | 12/11/2025 |
| 13.0.1 | 11 | 10/07/2026 |
| 13.0.0 | 60 | 12/20/2025 |
| 9.5.2 | 47 | 12/11/2025 |
| 9.5.1 | 9 | 10/10/2026 |
| 9.5.0 | 11 | 10/06/2026 |
| 9.4.2 | 13 | 10/07/2026 |
| 9.4.1 | 40 | 12/11/2025 |
| 9.4.0 | 47 | 12/19/2025 |
| 9.3.1 | 11 | 10/10/2026 |
| 9.3.0 | 46 | 12/11/2025 |
| 9.2.1 | 46 | 12/18/2025 |
| 9.2.0 | 39 | 12/12/2025 |
| 9.1.0 | 49 | 12/14/2025 |
| 9.0.0 | 12 | 10/06/2026 |
| 9.0.0-rc.1.24511.1 | 16 | 10/06/2026 |
| 8.2.2 | 46 | 12/11/2025 |
| 8.2.1 | 38 | 12/11/2025 |
| 8.2.0 | 44 | 12/25/2025 |
| 8.1.0 | 47 | 12/12/2025 |
| 8.0.2 | 51 | 12/14/2025 |
| 8.0.1 | 41 | 12/11/2025 |
| 8.0.0 | 42 | 12/11/2025 |
| 8.0.0-preview.7.24251.11 | 47 | 12/11/2025 |
| 8.0.0-preview.6.24214.1 | 16 | 09/30/2026 |
| 8.0.0-preview.5.24201.12 | 18 | 10/06/2026 |