net9.0
namespace Aspire.Hosting
{
    public static class ProjectResourceBuilderExtensions
    {
        [AspireExportIgnore(Reason = "Polyglot AppHosts use the internal addProject dispatcher export.")]
        public static IResourceBuilder<ProjectResource!>! AddProject(this IDistributedApplicationBuilder! builder, [ResourceName] string! name, string! projectPath, string? launchProfileName);
    }
}
.NET
8.09.011.0
Information specific to net9.0
Assembly

Aspire.Hosting , Version=13.6.5.0, PublicKeyToken=cc7b13ffcd2ddd51

Referencing

Your project needs a package reference to Aspire.Hosting.

Package Aspire.Hosting (13.6.5) net8.0
Platform Restrictions

This API is supported on all platforms.

  • Built-in API
  • Package-provided API