Skip to main content
net8.0

Core library and MSBuild logic for .NET Aspire AppHost projects.

Published
Jun 28, 2024
2y ago
Total Downloads
30.3M
30,273,548

Deprecated Package Version

Reason: Other, Legacy

This version is out of support and is no longer maintained. Please upgrade to the latest version. See our support policy for details: https://aka.ms/dotent/aspire/support

Install

dotnet add package Aspire.Hosting.AppHost --version 8.0.2
ProductVersions
.NET
net8.0

README

Aspire.Hosting.AppHost library

Provides the core APIs and MSBuild logic for .NET Aspire AppHost projects.

Getting started

Install the package

In your project, install the .NET Aspire AppHost library with NuGet:

dotnet add package Aspire.Hosting.AppHost

Usage example

Then, in the Program.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

https://learn.microsoft.com/dotnet/aspire/

Feedback & contributing

https://github.com/dotnet/aspire

Changes from Previous Version

No structural changes between v8.0.1 and v8.0.2.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

NuGet marks this package as deprecated. Review the publisher's migration guidance before adopting it.Compatibility metadata lists 1 target framework; confirm the exact target used by your application.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.