Aspire.Hosting 9.5.0
Aspire.Hosting library
Core abstractions for the .NET 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 to add a transitive referencing including custom build targets to support code generation of metadata
types for referenced .NET projects.
Developers wishing to build their own custom resource types and supporting APIs for .NET 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 AddProject
, AddPostgres
, etc.), wire dependencies explicitly, and attach metadata through annotations to drive orchestration, configuration, and deployment.
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
, andWithEnvironment
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
Showing the top 20 packages that depend on Aspire.Hosting.
Packages | Downloads |
---|---|
Aspire.Hosting.AppHost
Core library and MSBuild logic for .NET Aspire AppHost projects.
|
15 |
Aspire.Hosting.AppHost
Core library and MSBuild logic for .NET Aspire AppHost projects.
|
16 |
Aspire.Hosting.AppHost
Core library and MSBuild logic for .NET Aspire AppHost projects.
|
18 |
Aspire.Hosting.AppHost
Core library and MSBuild logic for .NET Aspire AppHost projects.
|
20 |
Aspire.Hosting.AppHost
Core library and MSBuild logic for .NET Aspire AppHost projects.
|
21 |
Aspire.Hosting.AppHost
Core library and MSBuild logic for .NET Aspire AppHost projects.
|
22 |
Aspire.Hosting.AppHost
Core library and MSBuild logic for .NET Aspire AppHost projects.
|
23 |
CommunityToolkit.Aspire.Hosting.Dapr
Dapr support for .NET Aspire.
|
13 |
CommunityToolkit.Aspire.Hosting.Dapr
Dapr support for .NET Aspire.
|
14 |
.NET 8.0
- AspNetCore.HealthChecks.Uris (>= 9.0.0)
- Newtonsoft.Json (>= 13.0.3)
- Microsoft.Extensions.Primitives (>= 8.0.0)
- Microsoft.Extensions.Options (>= 8.0.2)
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.3)
- Microsoft.Extensions.Http (>= 8.0.1)
- Microsoft.Extensions.Hosting.Abstractions (>= 8.0.1)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 8.0.20)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.2)
- Microsoft.Extensions.Configuration.Binder (>= 8.0.2)
- Microsoft.Extensions.Configuration.Abstractions (>= 8.0.0)
- Humanizer.Core (>= 2.14.1)
- Grpc.Net.ClientFactory (>= 2.71.0)
- Google.Protobuf (>= 3.32.0)
- System.IO.Hashing (>= 9.0.8)
- StreamJsonRpc (>= 2.22.11)
- Semver (>= 3.0.0)
- Polly.Core (>= 8.6.3)
- Microsoft.Extensions.Hosting (>= 8.0.1)
- KubernetesClient (>= 17.0.14)
- JsonPatch.Net (>= 3.3.0)
- Grpc.AspNetCore (>= 2.71.0)
- Grpc.Tools (>= 2.72.0)
Version | Downloads | Last updated |
---|---|---|
9.5.0 | 1 | 10/02/2025 |
9.4.2 | 4 | 09/03/2025 |
9.4.1 | 6 | 08/16/2025 |
9.4.0 | 8 | 07/30/2025 |
9.3.2 | 7 | 06/27/2025 |
9.3.1 | 11 | 06/14/2025 |
9.3.0 | 14 | 05/23/2025 |
9.2.1 | 12 | 04/29/2025 |
9.2.0 | 16 | 04/14/2025 |
9.1.0 | 15 | 03/08/2025 |
9.0.0 | 19 | 02/10/2025 |
9.0.0-rc.1.24511.1 | 17 | 02/23/2025 |
9.0.0-preview.3.24210.17 | 16 | 02/20/2025 |
9.0.0-preview.2.24162.2 | 16 | 02/23/2025 |
9.0.0-preview.1.24113.3 | 15 | 03/01/2025 |
8.2.2 | 17 | 02/23/2025 |
8.2.1 | 18 | 02/23/2025 |
8.2.0 | 16 | 02/23/2025 |
8.1.0 | 18 | 03/08/2025 |
8.0.2 | 17 | 02/20/2025 |
8.0.1 | 18 | 02/23/2025 |
8.0.0 | 19 | 02/22/2025 |
8.0.0-preview.7.24251.11 | 16 | 02/23/2025 |
8.0.0-preview.6.24214.1 | 20 | 02/20/2025 |
8.0.0-preview.5.24201.12 | 18 | 03/08/2025 |
8.0.0-preview.4.24156.9 | 17 | 03/08/2025 |
8.0.0-preview.3.24105.21 | 14 | 02/23/2025 |
8.0.0-preview.2.23619.3 | 13 | 02/23/2025 |
8.0.0-preview.1.23557.2 | 17 | 02/20/2025 |