Aspire.Hosting
13.4.1
Prefix Reserved
See the version list below for details.
dotnet add package Aspire.Hosting --version 13.4.1
NuGet\Install-Package Aspire.Hosting -Version 13.4.1
<PackageReference Include="Aspire.Hosting" Version="13.4.1" />
<PackageVersion Include="Aspire.Hosting" Version="13.4.1" />
<PackageReference Include="Aspire.Hosting" />
paket add Aspire.Hosting --version 13.4.1
#r "nuget: Aspire.Hosting, 13.4.1"
#:package Aspire.Hosting@13.4.1
#addin nuget:?package=Aspire.Hosting&version=13.4.1
#tool nuget:?package=Aspire.Hosting&version=13.4.1
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 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 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, andWithEnvironmentthat 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
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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. |
-
net8.0
- AspNetCore.HealthChecks.Uris (>= 9.0.0)
- Google.Protobuf (>= 3.34.1)
- Grpc.AspNetCore (>= 2.80.0)
- Grpc.Net.ClientFactory (>= 2.80.0)
- Humanizer.Core (>= 3.0.10)
- JsonPatch.Net (>= 3.3.0)
- KubernetesClient (>= 19.0.2)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.8)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.8)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.8)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 8.0.27)
- Microsoft.Extensions.FileSystemGlobbing (>= 10.0.8)
- Microsoft.Extensions.Hosting (>= 10.0.8)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.8)
- Microsoft.Extensions.Http (>= 10.0.8)
- Microsoft.Extensions.Logging (>= 10.0.8)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.8)
- Microsoft.Extensions.Options (>= 10.0.8)
- Microsoft.Extensions.Primitives (>= 10.0.8)
- ModelContextProtocol (>= 1.3.0)
- Newtonsoft.Json (>= 13.0.4)
- OpenTelemetry.Exporter.OpenTelemetryProtocol (>= 1.15.3)
- OpenTelemetry.Extensions.Hosting (>= 1.15.3)
- Polly.Core (>= 8.6.6)
- Semver (>= 3.0.0)
- StreamJsonRpc (>= 2.22.23)
- System.IO.Hashing (>= 10.0.8)
- System.Text.Json (>= 10.0.8)
NuGet packages (327)
Showing the top 5 NuGet packages that depend on Aspire.Hosting:
| Package | Downloads |
|---|---|
|
Aspire.Hosting.AppHost
Core library and MSBuild logic for Aspire AppHost projects. |
|
|
Aspire.Hosting.Azure
Azure resource types for Aspire. |
|
|
Aspire.Hosting.Testing
Testing support for the Aspire application model. |
|
|
Aspire.Hosting.SqlServer
Microsoft SQL Server support for Aspire. |
|
|
Aspire.Hosting.Redis
Redis® support for Aspire. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 13.4.6 | 566,578 | 6/19/2026 |
| 13.4.5 | 138,852 | 6/17/2026 |
| 13.4.4 | 125,871 | 6/15/2026 |
| 13.4.3 | 362,366 | 6/8/2026 |
| 13.4.2 | 232,028 | 6/3/2026 |
| 13.4.1 | 5,429 | 6/3/2026 |
| 13.4.0 | 261,488 | 6/1/2026 |
| 13.3.5 | 556,512 | 5/21/2026 |
| 13.3.4 | 82,399 | 5/19/2026 |
| 13.3.3 | 254,946 | 5/15/2026 |
| 13.3.2 | 142,561 | 5/14/2026 |
| 13.3.1 | 86,725 | 5/12/2026 |
| 13.3.0 | 457,957 | 5/7/2026 |
| 13.2.4 | 726,602 | 4/24/2026 |
| 13.2.3 | 229,973 | 4/21/2026 |
| 13.2.2 | 658,031 | 4/8/2026 |
| 13.2.1 | 455,931 | 3/31/2026 |
| 13.2.0 | 578,948 | 3/23/2026 |
| 13.1.3 | 199,631 | 3/19/2026 |
| 13.1.2 | 1,054,282 | 2/26/2026 |