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

https://aspire.dev/

Feedback & contributing

https://github.com/microsoft/aspire

No packages depend on Aspire.Hosting.AppHost.

.NET 10.0

.NET 11.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