Aspire.Hosting 17.0.0

Aspire.Hosting library

Core abstractions for the Aspire application model. It provides the building blocks for the distributed application hosting model. This package should not be referenced by AppHost projects directly. Instead use the Aspire.Hosting.AppHost package for AppHost APIs and targets. Add Aspire.Hosting.Dotnet separately to declare .NET services by their actual project paths with AddDotnetProject.

Developers wishing to build their own custom resource types and supporting APIs for Aspire should reference this package directly.

Aspire Application Model Overview

Aspire models distributed applications as a graph of resources—services, infrastructure elements, and supporting components—using strongly-typed, extensible abstractions. Resources are inert data objects that describe capabilities, configuration, and relationships. Developers compose applications using fluent extension methods (like AddDotnetProject, AddPostgres, etc.), wire dependencies explicitly, and attach metadata through annotations to drive orchestration, configuration, and deployment.

Legacy .NET-hosting AddProject overloads are obsolete but remain functional. See the migration guide for overload mappings, returned resources, generic helpers, model queries, and compatibility boundaries.

Key concepts include:

  • Resources: The fundamental unit representing a service or component in the app model.
  • Annotations: Extensible metadata attached to resources to express capabilities and configuration.
  • Fluent extension methods: APIs like AddX, WithReference, and WithEnvironment that guide correct resource composition and wiring.
  • Resource graph: An explicit, developer-authored Directed Acyclic Graph (DAG) that models dependencies and value flows.
  • Deferral and structured values: Configuration and connectivity are expressed using structured references, allowing for deferred evaluation and environment-specific resolution at publish and run time.
  • Standard interfaces: Optional interfaces enable polymorphic behaviors, such as environment wiring and endpoint exposure, for both built-in and custom resources.
  • Lifecycle events and resource states: The Aspire runtime orchestrates resource startup, readiness, health, and shutdown in a predictable, observable way.

Aspire's approach ensures flexibility, strong tooling support, and clear separation between modeling, orchestration, and execution of distributed .NET applications.

For the full details and specification, see the App Model document.

Feedback & contributing

https://github.com/microsoft/aspire

Showing the top 20 packages that depend on Aspire.Hosting.

Packages Downloads
Aspire.Hosting.AppHost
Core library and MSBuild logic for Aspire AppHost projects.
58
Aspire.Hosting.AppHost
Core library and MSBuild logic for .NET Aspire AppHost projects.
57
Aspire.Hosting.AppHost
Core library and MSBuild logic for .NET Aspire AppHost projects.
56
Aspire.Hosting.AppHost
Core library and MSBuild logic for .NET Aspire AppHost projects.
55
Aspire.Hosting.AppHost
Core library and MSBuild logic for .NET Aspire AppHost projects.
53
Aspire.Hosting.AppHost
Core library and MSBuild logic for Aspire AppHost projects.
53
Aspire.Hosting.AppHost
Core library and MSBuild logic for .NET Aspire AppHost projects.
52
Aspire.Hosting.AppHost
Core library and MSBuild logic for .NET Aspire AppHost projects.
51
Aspire.Hosting.AppHost
Core library and MSBuild logic for Aspire AppHost projects.
51
Aspire.Hosting.AppHost
Core library and MSBuild logic for .NET Aspire AppHost projects.
50
Aspire.Hosting.AppHost
Core library and MSBuild logic for .NET Aspire AppHost projects.
49

Version Downloads Last updated
17.0.0 1 11/23/2026
13.6.5 16 11/11/2026
13.6.4 19 10/25/2026
13.6.3 19 10/22/2026
13.6.2 18 10/21/2026
13.6.1 19 10/7/2026
13.6.0 22 9/30/2026
13.5.4 28 9/18/2026
13.5.3 30 8/26/2026
13.5.2 22 8/25/2026
13.5.1 28 8/22/2026
13.5.0 29 8/21/2026
13.4.6 36 6/22/2026
13.4.5 42 6/19/2026
13.4.4 43 6/15/2026
13.4.3 36 6/12/2026
13.4.2 36 6/5/2026
13.4.1 33 6/6/2026
13.4.0 36 6/5/2026
13.3.5 41 5/21/2026
13.3.4 39 5/21/2026
13.3.3 34 5/15/2026
13.3.2 44 5/15/2026
13.3.1 38 5/14/2026
13.3.0 38 5/9/2026
13.2.4 43 5/4/2026
13.2.3 44 5/4/2026
13.2.2 45 5/4/2026
13.2.1 43 5/4/2026
13.2.0 29 3/24/2026
13.1.3 34 3/24/2026
13.1.2 38 2/27/2026
13.1.1 37 2/14/2026
13.1.0 54 12/18/2025
13.0.2 57 12/12/2025
13.0.1 45 12/12/2025
13.0.0 51 12/12/2025
9.5.2 52 12/12/2025
9.5.1 48 12/12/2025
9.5.0 51 12/12/2025
9.4.2 51 12/12/2025
9.4.1 55 12/12/2025
9.4.0 51 12/12/2025
9.3.2 55 12/12/2025
9.3.1 56 12/12/2025
9.3.0 52 12/12/2025
9.2.1 50 12/12/2025
9.2.0 52 12/12/2025
9.1.0 55 12/12/2025
9.0.0 50 12/12/2025
9.0.0-rc.1.24511.1 49 12/12/2025
9.0.0-preview.3.24210.17 50 12/12/2025
9.0.0-preview.2.24162.2 51 12/12/2025
9.0.0-preview.1.24113.3 52 12/12/2025
8.2.2 60 12/12/2025
8.2.1 47 12/12/2025
8.2.0 49 12/12/2025
8.1.0 58 12/12/2025
8.0.2 50 12/12/2025
8.0.1 49 12/12/2025
8.0.0 52 12/12/2025
8.0.0-preview.7.24251.11 45 12/12/2025
8.0.0-preview.6.24214.1 48 12/12/2025
8.0.0-preview.5.24201.12 44 12/12/2025
8.0.0-preview.4.24156.9 57 12/12/2025
8.0.0-preview.3.24105.21 44 12/12/2025
8.0.0-preview.2.23619.3 48 12/12/2025
8.0.0-preview.1.23557.2 47 12/12/2025