Skip to content

Delegate bundled AppHost dotnet run to Aspire CLI - #17748

Merged
David Fowler (davidfowl) merged 9 commits into
mainfrom
davidfowl/find-functions-sample
Jun 3, 2026
Merged

David Fowler (davidfowl) merged 9 commits into
mainfrom
davidfowl/find-functions-sample

Conversation

@davidfowl

@davidfowl David Fowler (davidfowl) commented May 31, 2026 •

Copy link
Copy Markdown
Collaborator

Description

dotnet run

aspire run

dotnet run for AppHosts should behave consistently with other Aspire bundle flows when AspireUseCliBundle is enabled. This change lets the AppHost SDK take over MSBuild's run command and route the invocation through aspire run, so bundled CLI behavior is used while still preserving app arguments.

The full control flow is dotnet run -> aspire run -> dotnet run: the outer user-facing dotnet run delegates to the Aspire CLI, and the Aspire CLI then starts the AppHost using dotnet run as usual. To avoid recursively re-entering the MSBuild run hook on that inner launch, the CLI sets ASPIRE_SUPPRESS_CLI_RUN_HOOK while it probes and runs AppHosts. File-based AppHosts also pass the suppression property to the inner dotnet run invocation so cached run arguments cannot bounce back to aspire run.

The SDK target computes RunCommand and RunArguments for dotnet run in bundle mode, appending original app arguments after --.

User-facing usage

Project AppHosts with the bundle enabled can run through the Aspire CLI via dotnet run:

dotnet run --project MyApp.AppHost -- --from-dotnet-run

Internally this delegates to:

aspire run --project "MyApp.AppHost.csproj" --no-build -- --from-dotnet-run

Validation:

dotnet test --project tests/Aspire.Hosting.Sdk.Tests/Aspire.Hosting.Sdk.Tests.csproj --no-launch-profile -- --filter-class "*.AppHostSdkTargetsTests" --filter-not-trait "quarantined=true" --filter-not-trait "outerloop=true"
dotnet test --project tests/Aspire.Cli.Tests/Aspire.Cli.Tests.csproj --no-launch-profile -- --filter-class "*.DotNetCliRunnerTests" --filter-not-trait "quarantined=true" --filter-not-trait "outerloop=true"
ASPIRE_E2E_ARCHIVE=/tmp/aspire-e2e-dotnet-run.tar.gz dotnet test --project tests/Aspire.Cli.EndToEnd.Tests/Aspire.Cli.EndToEnd.Tests.csproj --no-build --no-launch-profile -- --filter-method "*.DotNetRunProjectAppHostUsesAspireCliBundle" --filter-not-trait "quarantined=true" --filter-not-trait "outerloop=true"

Fixes # (issue)

Checklist

  • Is this feature complete?
    • Yes. Ready to ship.
    • No. Follow-up changes expected.
  • Are you including unit tests for the changes and scenario tests if relevant?
    • Yes
    • No
  • Did you add public API?
    • Yes
      • If yes, did you have an API Review for it?
        • Yes
        • No
      • Did you add <remarks /> and <code /> elements on your triple slash comments?
        • Yes
        • No
    • No
  • Does the change make any security assumptions or guarantees?
    • Yes
      • If yes, have you done a threat model and had a security review?
        • Yes
        • No
    • No

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions

github-actions Bot commented May 31, 2026 •

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 17748

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 17748"

David Fowler (davidfowl) and others added 2 commits May 30, 2026 23:11
Use the platform-correct PATH environment variable name so the fake Aspire CLI shim is discoverable when dotnet run launches the AppHost run hook on Windows.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Mirror the Azure Functions dotnet run hook on Windows so PATH command shims like aspire.cmd resolve through cmd /C. Keep explicit AspireCliPath execution direct and update the SDK tests to expect the platform-specific run command shape.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@davidfowl

David Fowler (davidfowl) commented May 31, 2026 •

Copy link
Copy Markdown
Collaborator Author

Superseded by the updated PR testing report below.

David Fowler (davidfowl) and others added 3 commits May 31, 2026 07:30
Teach the AppHost SDK run hook to pass the original apphost.cs path for file-based AppHosts and ensure CLI-launched file AppHosts suppress the hook without using the cached --no-build run path.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@davidfowl

David Fowler (davidfowl) commented May 31, 2026 •

Copy link
Copy Markdown
Collaborator Author

PR Testing Report

PR Information

CLI Version Verification

  • Expected Commit: 7f99d27
  • Installed Version: 13.5.0-pr.17748.g7f99d27a
  • Status: ✅ Verified - installed PR CLI contains the PR head short SHA.

Changes Analyzed

Files Changed

  • src/Aspire.Cli/DotNet/DotNetCliRunner.cs
  • src/Aspire.Hosting.AppHost/build/Aspire.Hosting.AppHost.in.targets
  • src/Shared/KnownConfigNames.cs
  • tests/Aspire.Cli.EndToEnd.Tests/BundleSmokeTests.cs
  • tests/Aspire.Cli.Tests/DotNet/DotNetCliRunnerTests.cs
  • tests/Aspire.Hosting.Sdk.Tests/AppHostSdkTargetsTests.cs

Change Categories

  • CLI changes detected - AppHost launch suppresses the run hook, including file-based AppHost handling.
  • Hosting/AppHost SDK changes detected - bundled AppHost dotnet run delegates to aspire run through MSBuild run arguments.
  • Test changes detected - unit and E2E coverage for project and file-based AppHost run-hook behavior.
  • Dashboard changes detected
  • Client/component changes detected
  • Template changes detected

Test Scenarios Executed

Scenario 1: Project AppHost dotnet run handoff

Objective: Verify a bundled project-based AppHost can be started with bare dotnet run from the AppHost project directory and hands off to the Aspire CLI.

Coverage Type: Happy path

Status: ✅ Passed

Evidence:

  • Command: dotnet run
  • AppHost: scenarios/project-apphost/PrRunHookProject/PrRunHookProject.AppHost/PrRunHookProject.AppHost.csproj
  • Output showed the Aspire CLI-owned stop prompt: Press CTRL+C to stop the AppHost and exit.
  • The app reached the running state and stopped cleanly.

Scenario 2: File-based AppHost positional dotnet run apphost.cs handoff

Objective: Verify a file-based AppHost can be started with dotnet run apphost.cs, passes the original file path to aspire run, avoids recursive run-hook execution, and forwards user arguments.

Coverage Type: Happy path

Status: ✅ Passed

Evidence:

  • Command: dotnet run apphost.cs -- --from-dotnet-run-file
  • AppHost: scenarios/file-apphost/PrRunHookFile/apphost.cs
  • Output showed the Aspire CLI-owned stop prompt: Press CTRL+C to stop the AppHost and exit.
  • The forwarded argument was captured in apphost-file-args.txt.
  • The app reached the running state and stopped cleanly.

Scenario 3: Missing AppHost path

Objective: Verify invalid --apphost input fails safely with a clear validation error.

Coverage Type: Unhappy path

Status: ✅ Passed

Evidence:

  • Command: aspire run --apphost /tmp/does-not-exist.csproj
  • Expected outcome observed: non-zero exit with The --apphost option specified a project that does not exist.

Scenario 4: Direct aspire run in bundled mode

Objective: Verify the run-hook changes do not regress direct Aspire CLI execution for bundled project-based or file-based AppHosts.

Coverage Type: Regression

Status: ✅ Passed

Evidence:

  • Project AppHost command: aspire run --apphost DirectCliProject.AppHost.csproj
  • File-based AppHost command: aspire run --apphost apphost.cs
  • Both commands built the AppHost, connected successfully, started the dashboard, and showed the Aspire CLI-owned prompt: Press CTRL+C to stop the AppHost and exit.
  • Logs:
    • /var/folders/yx/2sfj5rw95xxb_4mg1vlnlpsh0000gn/T/aspire-pr-test-XXXXXX.zDzJ10Zvhb/logs/direct-cli-regression/project-run.log
    • /var/folders/yx/2sfj5rw95xxb_4mg1vlnlpsh0000gn/T/aspire-pr-test-XXXXXX.zDzJ10Zvhb/logs/direct-cli-regression/file-run.log

Scenario 5: Direct aspire start/aspire stop in bundled mode

Objective: Verify detached Aspire CLI startup still works for bundled project-based and file-based AppHosts.

Coverage Type: Regression

Status: ✅ Passed

Evidence:

  • Project AppHost command: aspire start --apphost DirectCliProject.AppHost.csproj
  • File-based AppHost command: aspire start --apphost apphost.cs
  • Both commands reported AppHost started successfully, emitted a dashboard URL and AppHost PID, and were stopped successfully with aspire stop --apphost ....
  • Logs:
    • /var/folders/yx/2sfj5rw95xxb_4mg1vlnlpsh0000gn/T/aspire-pr-test-XXXXXX.zDzJ10Zvhb/logs/direct-cli-regression/project-start.log
    • /var/folders/yx/2sfj5rw95xxb_4mg1vlnlpsh0000gn/T/aspire-pr-test-XXXXXX.zDzJ10Zvhb/logs/direct-cli-regression/file-start.log

Targeted Automated Coverage

  • Added E2E coverage for file-based AppHost dotnet run apphost.cs handoff.
  • Verified the E2E test waits for Aspire CLI-owned output rather than only proving direct AppHost execution.
  • Targeted E2E command passed:
ASPIRE_E2E_ARCHIVE=/tmp/aspire-e2e-runhook.tar.gz dotnet test --project tests/Aspire.Cli.EndToEnd.Tests/Aspire.Cli.EndToEnd.Tests.csproj --no-launch-profile -- --filter-method "*.DotNetRunFileBasedAppHostUsesAspireCliBundle" --filter-not-trait "quarantined=true" --filter-not-trait "outerloop=true" --hangdump --hangdump-timeout 5m

Summary

Scenario Status Notes
Project AppHost dotnet run handoff ✅ Passed dotnet run delegates to Aspire CLI and starts cleanly.
File-based AppHost positional handoff ✅ Passed dotnet run apphost.cs delegates to Aspire CLI and forwards arguments.
Missing AppHost path ✅ Passed Clear non-zero validation failure.
Direct aspire run in bundled mode ✅ Passed Project and file-based AppHosts start through direct CLI invocation.
Direct aspire start/aspire stop in bundled mode ✅ Passed Project and file-based AppHosts start detached and stop cleanly.

Overall Result

✅ PR VERIFIED

The PR build was verified against the latest tested head commit. Both project-based and file-based AppHost dotnet run scenarios now exercise the Aspire CLI handoff path, including the file-based positional form that previously failed. Direct aspire run and aspire start/aspire stop also continue to work in bundled mode.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds an AppHost SDK hook so dotnet run on an AppHost (when AspireUseCliBundle=true) delegates to the bundled aspire run. To prevent recursion (dotnet run → aspire run → dotnet run), the CLI's DotNetCliRunner sets ASPIRE_SUPPRESS_CLI_RUN_HOOK in the child env (and an MSBuild /p: for file-based AppHosts), and the targets honor either the env var or the _AspireSuppressCliRunHook property.

Changes:

  • New _AspireComputeRunArguments MSBuild target rewrites RunCommand/RunArguments/RunWorkingDirectory to invoke aspire run --project <path> --no-build -- <originalArgs>, with Windows shim handling via cmd /C aspire and special-cased file-based AppHost path resolution.
  • DotNetCliRunner always propagates ASPIRE_SUPPRESS_CLI_RUN_HOOK=true in the run env, and additionally passes /p:ASPIRE_SUPPRESS_CLI_RUN_HOOK=true on the file-based dotnet run --file command-line (cached run args path).
  • Adds unit tests for the SDK targets and CLI runner, plus two end-to-end bundle smoke tests covering project and file-based AppHosts launched via dotnet run.
Show a summary per file
File Description
src/Shared/KnownConfigNames.cs Adds SuppressCliRunHook constant.
src/Aspire.Hosting.AppHost/build/Aspire.Hosting.AppHost.in.targets New _AspireComputeRunArguments target redirecting dotnet run to the Aspire CLI bundle.
src/Aspire.Cli/DotNet/DotNetCliRunner.cs Sets suppression env var on all CLI-launched AppHosts; adds /p: switch on file-based dotnet run.
tests/Aspire.Hosting.Sdk.Tests/AppHostSdkTargetsTests.cs New SDK-targets tests covering bundle/non-bundle, suppression, file-based AppHost, and end-to-end dotnet run capture.
tests/Aspire.Cli.Tests/DotNet/DotNetCliRunnerTests.cs Asserts suppression env var and /p: switch are emitted for project, file-based, and project-items code paths.
tests/Aspire.Cli.EndToEnd.Tests/BundleSmokeTests.cs Adds E2E tests for dotnet run → aspire run for both project and file-based AppHosts.

Copilot's findings

  • Files reviewed: 6/6 changed files
  • Comments generated: 0

Allow the AppHost run hook suppression properties to accept 1 in addition to true, and clarify the single-file dotnet run cache workaround.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Update the comment to explain that --no-build skips recomputing RunCommand, rather than implying /p: properties are ignored by the up-to-date check.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The test already uses fake time to prove the remaining startup budget is consumed. Remove the wall-clock assertion that can fail under Windows CI load.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions

github-actions Bot commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

❓ CLI E2E Tests unknown — 112 passed, 0 failed, 2 unknown (commit 08fe46d)

View all recordings
- Test Detail
✅ AddPackageInteractiveWhileAppHostRunningDetached Recording · Job · CLI logs
✅ AddPackageWhileAppHostRunningDetached Recording · Job · CLI logs
✅ AgentCommands_AllHelpOutputs_AreCorrect Recording · Job · CLI logs
✅ AgentInitCommand_DefaultSelection_InstallsDefaultSkills Recording · Job · CLI logs
✅ AgentInitCommand_MigratesDeprecatedConfig Recording · Job · CLI logs
✅ AgentInit_NonInteractive_BundleOnlySkillsNotInCatalog Recording · Job · CLI logs
✅ AgentMcpListStructuredLogsReturnsLogsFromStarterApp Recording · Job · CLI logs
✅ AgentMcpListStructuredLogsReturnsLogsFromStarterApp_DevLocalhost Recording · Job · CLI logs
✅ AgentMcpListStructuredLogsReturnsLogsFromStarterApp_Isolated Recording · Job · CLI logs
✅ AllPublishMethodsBuildDockerImages Recording · Job · CLI logs
✅ AspireAddAndStartWorkAgainstLegacyAppHostTs Recording · Job · CLI logs
✅ AspireAddPackageVersionToDirectoryPackagesProps Recording · Job · CLI logs
✅ AspireInitSingleFileAppHostRunsViaDotnetRunAppHost Recording · Job · CLI logs
✅ AspireInit_ExistingAppHostDir_RecreatesNuGetConfigKeepsFiles Recording · Job · CLI logs
❔ AspireInit_SolutionFile_BuildsAgainstChannelHive Recording · Job · CLI logs
✅ AspireStartUpdatesStaleTypeScriptAppHostPath Recording · Job · CLI logs
✅ AspireUpdateRemovesAppHostPackageVersionFromDirectoryPackagesProps Recording · Job · CLI logs
✅ AspireUpdateRemovesOrphanAppHostPackageVersionWhenSdkAlreadyCurrent Recording · Job · CLI logs
✅ Banner_DisplayedOnFirstRun Recording · Job · CLI logs
✅ Banner_DisplayedWithExplicitFlag Recording · Job · CLI logs
✅ Banner_NotDisplayedWithNoLogoFlag Recording · Job · CLI logs
✅ CertificatesClean_RemovesCertificates Recording · Job · CLI logs
✅ CertificatesTrust_WithNoCert_CreatesAndTrustsCertificate Recording · Job · CLI logs
✅ CertificatesTrust_WithUntrustedCert_TrustsCertificate Recording · Job · CLI logs
✅ ConfigSetGet_CreatesNestedJsonFormat Recording · Job · CLI logs
✅ CreateAndRunAspireStarterProject Recording · Job · CLI logs
✅ CreateAndRunAspireStarterProjectWithBundle Recording · Job · CLI logs
✅ CreateAndRunEmptyAppHostProject Recording · Job · CLI logs
✅ CreateAndRunJavaEmptyAppHostProject Recording · Job · CLI logs
✅ CreateAndRunJsReactProject Recording · Job · CLI logs
✅ CreateAndRunPolyglotAppHostWithDevLocalhostUrls Recording · Job · CLI logs
✅ CreateAndRunPythonReactProject Recording · Job · CLI logs
✅ CreateAndRunTypeScriptEmptyAppHostProject Recording · Job · CLI logs
✅ CreateAndRunTypeScriptStarterProject Recording · Job · CLI logs
✅ CreateJavaAppHostWithViteApp Recording · Job · CLI logs
✅ CreateTypeScriptAppHostWithViteApp_UsesConfiguredToolchain Recording · Job · CLI logs
✅ DashboardRunWithAgentMcpListTracesReturnsNoTraces Recording · Job · CLI logs
✅ DashboardRunWithAgentMcpListTracesReturnsNoTraces_DevLocalhost Recording · Job · CLI logs
✅ DashboardRunWithOtelTracesReturnsNoTraces Recording · Job · CLI logs
✅ DashboardRunWithOtelTracesReturnsNoTraces_DevLocalhost Recording · Job · CLI logs
✅ DeployK8sBasicApiService Recording · Job · CLI logs
✅ DeployK8sWithExternalHelmChart Recording · Job · CLI logs
✅ DeployK8sWithGarnet Recording · Job · CLI logs
✅ DeployK8sWithMongoDB Recording · Job · CLI logs
✅ DeployK8sWithMySql Recording · Job · CLI logs
✅ DeployK8sWithPostgres Recording · Job · CLI logs
✅ DeployK8sWithRabbitMQ Recording · Job · CLI logs
✅ DeployK8sWithRedis Recording · Job · CLI logs
✅ DeployK8sWithSqlServer Recording · Job · CLI logs
✅ DeployK8sWithValkey Recording · Job · CLI logs
✅ DeployTypeScriptAppToKubernetes Recording · Job · CLI logs
✅ DescribeCommandResolvesReplicaNames Recording · Job · CLI logs
✅ DescribeCommandShowsRunningResources Recording · Job · CLI logs
✅ DetachFormatJsonProducesValidJson Recording · Job · CLI logs
✅ DetachFormatJsonProducesValidJsonWhenRestartingExistingInstance Recording · Job · CLI logs
✅ DoPublishAndDeployListStepsWork Recording · Job · CLI logs
✅ DocsCommand_RendersInteractiveMarkdownFromLocalSource Recording · Job · CLI logs
✅ DoctorCommand_DetectsDeprecatedAgentConfig Recording · Job · CLI logs
✅ DoctorCommand_TypeScriptAppHostReportsMissingConfiguredToolchain Recording · Job · CLI logs
✅ DoctorCommand_WithSslCertDir_ShowsTrusted Recording · Job · CLI logs
✅ DoctorCommand_WithoutSslCertDir_ShowsPartiallyTrusted Recording · Job · CLI logs
✅ DotNetRunFileBasedAppHostUsesAspireCliBundle Recording · Job · CLI logs
✅ DotNetRunProjectAppHostUsesAspireCliBundle Recording · Job · CLI logs
✅ GatewayWithoutExternalEndpoint_FailsPublishWithGuidance Recording · Job · CLI logs
✅ GeneratedAspireDevScript_StartsWatchMode_WithConfiguredToolchain Recording · Job · CLI logs
✅ GlobalMigration_HandlesCommentsAndTrailingCommas Recording · Job · CLI logs
✅ GlobalMigration_HandlesMalformedLegacyJson Recording · Job · CLI logs
✅ GlobalMigration_PreservesAllValueTypes Recording · Job · CLI logs
✅ GlobalMigration_SkipsWhenNewConfigExists Recording · Job · CLI logs
✅ GlobalSettings_MigratedFromLegacyFormat Recording · Job · CLI logs
✅ IngressWithoutExternalEndpoint_FailsPublishWithGuidance Recording · Job · CLI logs
✅ InitTypeScriptAppHost_AugmentsExistingViteRepoInWorkspaceSubdirectory Recording · Job · CLI logs
✅ InteractiveCSharpInitCreatesExpectedFiles Recording · Job · CLI logs
✅ InvalidAppHostPathWithComments_IsHealedOnRun Recording · Job · CLI logs
✅ JavaScriptHostingApisRunFromTypeScriptAppHost Recording · Job · CLI logs
✅ LatestCliCanStartStableChannelAppHost Recording · Job · CLI logs
✅ LatestCliCanStartStableChannelTypeScriptAppHost Recording · Job · CLI logs
✅ LegacySettingsMigration_AdjustsRelativeAppHostPath Recording · Job · CLI logs
✅ LogsCommandShowsResourceLogs Recording · Job · CLI logs
✅ OtelLogsReturnsStructuredLogsFromStarterApp Recording · Job · CLI logs
✅ OtelLogsReturnsStructuredLogsFromStarterAppIsolated Recording · Job · CLI logs
✅ PsCommandListsRunningAppHost Recording · Job · CLI logs
✅ PsFormatJsonOutputsOnlyJsonToStdout Recording · Job · CLI logs
✅ PublishJavaScriptPatternsGeneratesExpectedDockerComposeArtifacts Recording · Job · CLI logs
✅ PublishWithConfigureEnvFileUpdatesEnvOutput Recording · Job · CLI logs
✅ PublishWithDockerComposeServiceCallbackSucceeds Recording · Job · CLI logs
✅ PublishWithoutOutputPathUsesAppHostDirectoryDefault Recording · Job · CLI logs
✅ ResourceCommand_FailedExec_ShowsLogPathAndLogHasEntries Recording · Job · CLI logs
✅ ResourceCommand_SetAndDeleteParameterUpdatesDescribeOutput Recording · Job · CLI logs
✅ RestoreGeneratesSdkFiles Recording · Job · CLI logs
✅ RestoreGeneratesSdkFiles_WithConfiguredToolchain Recording · Job · CLI logs
✅ RestoreRefreshesGeneratedSdkAfterAddingIntegration Recording · Job · CLI logs
✅ RestoreSupportsConfigOnlyHelperPackageAndCrossPackageTypes Recording · Job · CLI logs
✅ RunFromParentDirectory_UsesExistingConfigNearAppHost Recording · Job · CLI logs
✅ RunReportsSyntaxErrorsForDotNetAppHost Recording · Job · CLI logs
✅ RunReportsSyntaxErrorsForTypeScriptAppHost Recording · Job · CLI logs
✅ SecretCrudOnDotNetAppHost Recording · Job · CLI logs
✅ SecretCrudOnTypeScriptAppHost Recording · Job · CLI logs
✅ StagingChannel_ConfigureAndVerifySettings_ThenSwitchChannels Recording · Job · CLI logs
✅ StartAndWaitForTypeScriptSqlServerAppHostWithNativeAssets Recording · Job · CLI logs
✅ StartReportsSyntaxErrorsForDotNetAppHost Recording · Job · CLI logs
✅ StartReportsSyntaxErrorsForTypeScriptAppHost Recording · Job · CLI logs
✅ StopAllAppHostsFromAppHostDirectory Recording · Job · CLI logs
✅ StopJavaPolyglotAppHostUsingApphostDirectory Recording · Job · CLI logs
✅ StopNonInteractiveSingleAppHost Recording · Job · CLI logs
✅ StopTypeScriptPolyglotAppHostUsingApphostDirectory Recording · Job · CLI logs
✅ StopWithNoRunningAppHostExitsSuccessfully Recording · Job · CLI logs
✅ TypeScriptAppHostRunDoesNotDeadlockWhenLazyOptionsInvokeAsyncCallback Recording · Job · CLI logs
✅ TypeScriptAppHostWithVite_AllowsDifferentGuestPkgManager Recording · Job · CLI logs
✅ UnAwaitedChainsCompileWithAutoResolvePromises Recording · Job · CLI logs
❔ UpdateToStable_CSharpEmptyAppHost_KeepsConfigChannel Recording · Job · CLI logs
✅ UpdateToStable_CSharpSingleFileInit_KeepsConfigChannel Recording · Job · CLI logs
✅ UpdateToStable_TypeScriptSingleFileInit_KeepsConfigChannel Recording · Job · CLI logs
✅ UpdateToStable_TypeScript_PreviewsStablePkgsAndKeepsChannel Recording · Job · CLI logs

📹 Recordings uploaded automatically from CI run #26829109093

@DamianEdwards

Copy link
Copy Markdown
Member

David Fowler (@davidfowl) can we add a CLI E2E test to cover the dotnet run using bundle scenario?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just the comment about adding an E2E CLI case for this but that's non-blocking

@davidfowl

Copy link
Copy Markdown
Collaborator Author

Yep, we already have this covered in tests/Aspire.Cli.EndToEnd.Tests/BundleSmokeTests.cs:

  • DotNetRunProjectAppHostUsesAspireCliBundle
  • DotNetRunFileBasedAppHostUsesAspireCliBundle

The project-based test sets AspireUseCliBundle=true, runs dotnet run --no-launch-profile --project <AppHost.csproj> -- --from-dotnet-run, waits for the Aspire CLI-owned Press CTRL+C to stop the AppHost and exit. prompt, and verifies the forwarded AppHost args. The file-based variant does the same for dotnet run apphost.cs.

@davidfowl
David Fowler (davidfowl) merged commit 98cfa49 into main Jun 3, 2026
312 checks passed
@davidfowl
David Fowler (davidfowl) deleted the davidfowl/find-functions-sample branch June 3, 2026 02:11
@github-actions github-actions Bot added this to the 13.5 milestone Jun 3, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 3, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants