Install
dotnet add package Aspire.Hosting.AppHost --version 13.2.0
| Product | Versions |
|---|---|
| .NET |
README
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
Usage example
Then, in the AppHost.cs file of AppHost, add project, container, and executable resources:
var builder = DistributedApplication.CreateBuilder(args);
// The Projects.MyApp type is generated by custom MSBuild targets added
// by the Aspire.Hosting.AppHost package when the MyApp project is added
// as a project reference.
var app = builder.AddProject<Projects.MyApp>("myapp");
builder.Build().Run();
Additional documentation
Feedback & contributing
Changes from Previous Version
v13.1.3v13.2.0
Added Dependencies
ModelContextProtocol(net8.0)
System.Text.Json(net8.0)
ModelContextProtocol(net9.0)
System.Text.Json(net9.0)
ModelContextProtocol(net10.0)
Adoption Assessment
A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.
Compatibility metadata lists 3 target frameworks; confirm the exact target used by your application.The published metadata declares 80 direct dependency entries across framework groups. Inspect the resolved dependency graph for your target framework.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.