Aspire.Hosting 13.4.1

Prefix Reserved
There is a newer version of this package available.
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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Aspire.Hosting" Version="13.4.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Aspire.Hosting" Version="13.4.1" />
                    
Directory.Packages.props
<PackageReference Include="Aspire.Hosting" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Aspire.Hosting --version 13.4.1
                    
#r "nuget: Aspire.Hosting, 13.4.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Aspire.Hosting@13.4.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Aspire.Hosting&version=13.4.1
                    
Install as a Cake Addin
#tool nuget:?package=Aspire.Hosting&version=13.4.1
                    
Install as a Cake Tool

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, 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

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
Loading failed