Skip to content

[13.3] aspire run and aspire start behave differently if DisableDashboard = true #16619

@afscrome

Description

@afscrome

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

Image

Expected Behavior

If aspire start can start the app host, I'd also expect aspire run to do so.

I'd also expect both to be able to start an apphost when the dashboard is disabled as I could use the aspire CLI commands to interact with the app host instead of the dashboard. The same app can be started successfully with dotnet run apphost.cs

Steps To Reproduce

#:sdk Aspire.AppHost.Sdk@13.3.0

var builder = DistributedApplication.CreateBuilder(new DistributedApplicationOptions
{
    DisableDashboard = true
});

builder.AddContainer("nginx", "nginx");

builder.Build().Run();

Exceptions (if any)

No response

Aspire doctor output

No response

Anything else?

No response

Metadata

Metadata

Assignees

Labels

Type

No fields configured for Bug.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions