Is there an existing issue for this?
Describe the bug
When the AppHost process exits before the CLI can establish a backchannel connection, the error message is:
An error occurred while connecting to the AppHost. The AppHost possibly crashed before it was available: AppHost process has exited unexpectedly..
Problems:
- No exit code — the user has no idea why the process failed
- Redundant phrasing —
possibly crashed + exited unexpectedly say the same thing
- Double period at the end — the inner message ends with
. and the format string also appends .
Expected Behavior
The error should include the exit code and clearly describe what happened:
An error occurred while connecting to the AppHost: The AppHost process exited unexpectedly with exit code 42.
Steps To Reproduce
- Have an AppHost project that crashes on startup (e.g., build error, missing dependency)
- Run
aspire run
- Observe the vague error message
Anything else?
This affects both DotNetCliRunner (local) and GuestAppHostProject (remote/server) paths.
Is there an existing issue for this?
Describe the bug
When the AppHost process exits before the CLI can establish a backchannel connection, the error message is:
Problems:
possibly crashed+exited unexpectedlysay the same thing.and the format string also appends.Expected Behavior
The error should include the exit code and clearly describe what happened:
Steps To Reproduce
aspire runAnything else?
This affects both
DotNetCliRunner(local) andGuestAppHostProject(remote/server) paths.