Aspire.Hosting.AppHost 17.0.0

Prefix Reserved
dotnet add package Aspire.Hosting.AppHost --version 17.0.0
                    
NuGet\Install-Package Aspire.Hosting.AppHost -Version 17.0.0
                    
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.AppHost" Version="17.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Aspire.Hosting.AppHost" Version="17.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Aspire.Hosting.AppHost" />
                    
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.AppHost --version 17.0.0
                    
#r "nuget: Aspire.Hosting.AppHost, 17.0.0"
                    
#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.AppHost@17.0.0
                    
#: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.AppHost&version=17.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Aspire.Hosting.AppHost&version=17.0.0
                    
Install as a Cake Tool

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

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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.  net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (60)

Showing the top 5 NuGet packages that depend on Aspire.Hosting.AppHost:

Package Downloads
Aspire.Hosting.Testing

Testing support for the Aspire application model.

InfinityFlow.Aspire.Temporal

Aspire extension to start the temporal cli dev server as an container or executable resource. Only container is well-supported currently.

AzureKeyVaultEmulator.Aspire.Hosting

.NET Aspire AppHost support for the Azure KeyVault Emulator

AJP.Aspire.Hosting.AsbEmulatorUi

A UI for the ASB Emulator, view entities, message counts, send, peek and receive messages, canned Messages, also API for automated testing.

FonsecaFramework.Aspire

Collection of classes and extensions for .NET Aspire

GitHub repositories (96)

Showing the top 20 popular GitHub repositories that depend on Aspire.Hosting.AppHost:

Repository Stars
microsoft/semantic-kernel
Integrate cutting-edge LLM technology quickly and easily into your apps
jasontaylordev/CleanArchitecture
Clean Architecture Solution Template for ASP.NET Core
ardalis/CleanArchitecture
Clean Architecture Solution Template: A proven Clean Architecture Template for ASP.NET Core 10
dotnet/AspNetCore.Docs
Documentation for ASP.NET Core
dotnet/orleans
Cloud Native application framework for .NET
ChilliCream/graphql-platform
Welcome to the home of the Hot Chocolate GraphQL server for .NET, the Strawberry Shake GraphQL client for .NET and Nitro the awesome Monaco based GraphQL IDE.
microsoft/fluentui-blazor
Microsoft Fluent UI Blazor components library. For use with ASP.NET Core Blazor applications
thomhurst/TUnit
A modern, fast and flexible .NET testing framework
dotnet/samples
Sample code referenced by the .NET documentation
dotnet/maui-samples
Samples for .NET Multi-Platform App UI (.NET MAUI)
evolutionary-architecture/evolutionary-architecture-by-example
Navigate the complex landscape of .NET software architecture with our step-by-step, story-like guide. Unpack the interplay between modular monoliths, microservices, domain-driven design, and various architectural patterns. Go beyond the one-size-fits-all solutions and understand how to blend these approaches based on your unique needs.
JasperFx/marten
.NET Transactional Document DB and Event Store on PostgreSQL
dotnet/extensions
This repository contains a suite of libraries that provide facilities commonly needed when creating production-ready applications.
microsoft/Generative-AI-for-beginners-dotnet
Five lessons, learn how to really apply AI to your .NET Applications
dotnet/sdk
Core functionality needed to create .NET projects, that is shared between Visual Studio and CLI
SciSharp/BotSharp
AI Multi-Agent Framework in .NET
BrighterCommand/Brighter
A framework for building messaging apps with .NET and C#.
Nethereum/Nethereum
Ethereum .Net cross platform integration library
dluc/kernel-memory
Research project. A Memory solution for users, teams, and applications.
aptabase/aptabase
✨ Open Source, Privacy-First and Simple Analytics for Mobile, Desktop and Web Apps
Version Downloads Last Updated
17.0.0 453,178 11/18/2026
13.6.5 2,024,460 11/10/2026
13.6.4 903,772 10/24/2026 13.6.4 has at least one vulnerability with high severity.
13.6.3 195,098 10/21/2026 13.6.3 has at least one vulnerability with high severity.
13.6.2 117,515 10/20/2026 13.6.2 has at least one vulnerability with high severity.
13.6.1 1,067,936 10/7/2026 13.6.1 has at least one vulnerability with high severity.
13.6.0 636,918 9/29/2026 13.6.0 has at least one vulnerability with high severity.
13.5.4 982,297 9/15/2026 13.5.4 has at least one vulnerability with high severity.
13.5.3 1,467,069 8/25/2026 13.5.3 has at least one vulnerability with high severity.
13.5.2 276,318 8/21/2026 13.5.2 has at least one vulnerability with high severity.
13.5.1 98,338 8/20/2026 13.5.1 has at least one vulnerability with high severity.
13.5.0 231,884 8/18/2026 13.5.0 has at least one vulnerability with high severity.
13.4.6 4,532,225 6/19/2026 13.4.6 has at least one vulnerability with high severity.
13.4.5 403,194 6/17/2026 13.4.5 has at least one vulnerability with high severity.
13.4.4 297,088 6/15/2026 13.4.4 has at least one vulnerability with high severity.
13.4.3 1,117,650 6/8/2026 13.4.3 has at least one vulnerability with high severity.
13.4.2 451,655 6/3/2026 13.4.2 has at least one vulnerability with high severity.
13.4.1 19,360 6/3/2026 13.4.1 has at least one vulnerability with high severity.
13.4.0 304,496 6/1/2026 13.4.0 has at least one vulnerability with high severity.
13.3.5 972,376 5/21/2026 13.3.5 has at least one vulnerability with high severity.
Loading failed