Skip to content

[release/13.3] Stop forcing MSBuild server for Aspire CLI builds - #17314

Merged
David Fowler (davidfowl) merged 2 commits into
release/13.3from
davidfowl/backport-17313-to-release-13-3
May 20, 2026
Merged

David Fowler (davidfowl) merged 2 commits into
release/13.3from
davidfowl/backport-17313-to-release-13-3

Conversation

@davidfowl

Copy link
Copy Markdown
Collaborator

Description

Backport of #17313 to release/13.3.

Stops the Aspire CLI from forcing DOTNET_CLI_USE_MSBUILD_SERVER for dotnet run / dotnet build invocations so the .NET SDK can choose the MSBuild server behavior. This addresses Linux failures with .NET SDK 10.0.300 where aspire run can fail during AppHost build with a named-pipe timeout.

Fixes #16849

Customer Impact

Customers using the Aspire CLI on Linux with .NET SDK 10.0.300 can hit a named-pipe timeout when running aspire run, preventing the AppHost project from building/running.

Testing

Updated DotNetCliRunner test coverage to verify the CLI no longer injects DOTNET_CLI_USE_MSBUILD_SERVER; targeted Aspire.Cli.Tests DotNetCliRunnerTests passed locally.

Risk

Low. The change is localized to CLI dotnet run/dotnet build process environment setup and removes an Aspire-forced MSBuild server override so the SDK chooses the behavior.

Regression?

Yes - the linked issue reports this worked with SDK 10.0.204 and regressed with SDK 10.0.300 on Aspire CLI 13.2/13.3.

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
  • Does the change require an update in our Aspire docs?

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

Backport to release/13.3 that removes Aspire CLI’s forced DOTNET_CLI_USE_MSBUILD_SERVER environment injection for dotnet build / dotnet run, allowing the .NET SDK to decide MSBuild server behavior (mitigating the Linux named-pipe timeout regression seen with SDK 10.0.300).

Changes:

  • Removed MSBuild server environment injection from DotNetCliRunner for RunAsync (when building) and BuildAsync.
  • Updated DotNetCliRunnerTests to assert the CLI no longer injects DOTNET_CLI_USE_MSBUILD_SERVER, including when configuration contains that key.
Show a summary per file
File Description
src/Aspire.Cli/DotNet/DotNetCliRunner.cs Stops forcing DOTNET_CLI_USE_MSBUILD_SERVER for dotnet run/dotnet build, letting the SDK determine MSBuild server usage.
tests/Aspire.Cli.Tests/DotNet/DotNetCliRunnerTests.cs Adjusts unit tests to ensure the runner does not inject DOTNET_CLI_USE_MSBUILD_SERVER in build/run scenarios.

Copilot's findings

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

@github-actions

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 -- 17314

Or

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

@github-actions

Copy link
Copy Markdown
Contributor

❓ CLI E2E Tests unknown — 64 passed, 0 failed, 4 unknown (commit b4cf94d)

View all recordings
Status Test Recording
✅ AddPackageInteractiveWhileAppHostRunningDetached ✅ ▶️ View recording
✅ AddPackageWhileAppHostRunningDetached ✅ ▶️ View recording
✅ AgentCommands_AllHelpOutputs_AreCorrect ✅ ▶️ View recording
✅ AgentInitCommand_DefaultSelection_InstallsSkillOnly ✅ ▶️ View recording
✅ AgentInitCommand_MigratesDeprecatedConfig ✅ ▶️ View recording
❔ AgentMcpListStructuredLogsFromStarterAppCore ❔ ▶️ View recording
✅ AspireAddPackageVersionToDirectoryPackagesProps ✅ ▶️ View recording
✅ AspireInitSingleFileAppHostRunsViaDotnetRunAppHost ✅ ▶️ View recording
✅ AspireUpdateRemovesAppHostPackageVersionFromDirectoryPackagesProps ✅ ▶️ View recording
✅ Banner_DisplayedOnFirstRun ✅ ▶️ View recording
✅ Banner_DisplayedWithExplicitFlag ✅ ▶️ View recording
✅ Banner_NotDisplayedWithNoLogoFlag ✅ ▶️ View recording
✅ CertificatesClean_RemovesCertificates ✅ ▶️ View recording
✅ CertificatesTrust_WithNoCert_CreatesAndTrustsCertificate ✅ ▶️ View recording
✅ CertificatesTrust_WithUntrustedCert_TrustsCertificate ✅ ▶️ View recording
✅ ConfigSetGet_CreatesNestedJsonFormat ✅ ▶️ View recording
✅ CreateAndRunAspireStarterProject ✅ ▶️ View recording
✅ CreateAndRunAspireStarterProjectWithBundle ✅ ▶️ View recording
✅ CreateAndRunEmptyAppHostProject ✅ ▶️ View recording
✅ CreateAndRunJavaEmptyAppHostProject ✅ ▶️ View recording
✅ CreateAndRunJsReactProject ✅ ▶️ View recording
✅ CreateAndRunPythonReactProject ✅ ▶️ View recording
✅ CreateAndRunTypeScriptEmptyAppHostProject ✅ ▶️ View recording
✅ CreateAndRunTypeScriptStarterProject ✅ ▶️ View recording
✅ CreateJavaAppHostWithViteApp ✅ ▶️ View recording
✅ CreateTypeScriptAppHostWithViteApp_UsesConfiguredToolchain ✅ ▶️ View recording
❔ DashboardRunWithAgentMcpCore ❔ ▶️ View recording
❔ DashboardRunWithOtelTracesReturnsNoTracesCore ❔ ▶️ View recording
✅ DescribeCommandResolvesReplicaNames ✅ ▶️ View recording
✅ DescribeCommandShowsRunningResources ✅ ▶️ View recording
✅ DetachFormatJsonProducesValidJson ✅ ▶️ View recording
✅ DetachFormatJsonProducesValidJsonWhenRestartingExistingInstance ✅ ▶️ View recording
✅ DoListStepsShowsPipelineSteps ✅ ▶️ View recording
✅ DocsCommand_RendersInteractiveMarkdownFromLocalSource ✅ ▶️ View recording
✅ DoctorCommand_DetectsDeprecatedAgentConfig ✅ ▶️ View recording
✅ DoctorCommand_TypeScriptAppHostReportsMissingConfiguredToolchain ✅ ▶️ View recording
✅ DoctorCommand_WithSslCertDir_ShowsTrusted ✅ ▶️ View recording
✅ DoctorCommand_WithoutSslCertDir_ShowsPartiallyTrusted ✅ ▶️ View recording
✅ GlobalMigration_HandlesCommentsAndTrailingCommas ✅ ▶️ View recording
✅ GlobalMigration_HandlesMalformedLegacyJson ✅ ▶️ View recording
✅ GlobalMigration_PreservesAllValueTypes ✅ ▶️ View recording
✅ GlobalMigration_SkipsWhenNewConfigExists ✅ ▶️ View recording
✅ GlobalSettings_MigratedFromLegacyFormat ✅ ▶️ View recording
✅ InitTypeScriptAppHost_AugmentsExistingViteRepoAtRoot ✅ ▶️ View recording
✅ InteractiveCSharpInitCreatesExpectedFiles ✅ ▶️ View recording
✅ InvalidAppHostPathWithComments_IsHealedOnRun ✅ ▶️ View recording
✅ LegacySettingsMigration_AdjustsRelativeAppHostPath ✅ ▶️ View recording
✅ LogLevelTrace_ProducesTraceEntriesInCliLogFile ✅ ▶️ View recording
✅ LogsCommandShowsResourceLogs ✅ ▶️ View recording
❔ OtelLogsReturnsStructuredLogsFromStarterAppCore ❔ ▶️ View recording
✅ PsCommandListsRunningAppHost ✅ ▶️ View recording
✅ PsFormatJsonOutputsOnlyJsonToStdout ✅ ▶️ View recording
✅ PublishWithConfigureEnvFileUpdatesEnvOutput ✅ ▶️ View recording
✅ PublishWithDockerComposeServiceCallbackSucceeds ✅ ▶️ View recording
✅ PublishWithoutOutputPathUsesAppHostDirectoryDefault ✅ ▶️ View recording
✅ RestoreGeneratesSdkFiles ✅ ▶️ View recording
✅ RestoreGeneratesSdkFiles_WithConfiguredToolchain ✅ ▶️ View recording
✅ RestoreRefreshesGeneratedSdkAfterAddingIntegration ✅ ▶️ View recording
✅ RestoreSupportsConfigOnlyHelperPackageAndCrossPackageTypes ✅ ▶️ View recording
✅ RunFromParentDirectory_UsesExistingConfigNearAppHost ✅ ▶️ View recording
✅ SecretCrudOnDotNetAppHost ✅ ▶️ View recording
✅ SecretCrudOnTypeScriptAppHost ✅ ▶️ View recording
✅ StagingChannel_ConfigureAndVerifySettings_ThenSwitchChannels ✅ ▶️ View recording
✅ StartAndWaitForTypeScriptSqlServerAppHostWithNativeAssets ✅ ▶️ View recording
✅ StopAllAppHostsFromAppHostDirectory ✅ ▶️ View recording
✅ StopNonInteractiveSingleAppHost ✅ ▶️ View recording
✅ StopWithNoRunningAppHostExitsSuccessfully ✅ ▶️ View recording
✅ UnAwaitedChainsCompileWithAutoResolvePromises ✅ ▶️ View recording

📹 Recordings uploaded automatically from CI run #26174669119

@davidfowl
David Fowler (davidfowl) merged commit b0bbc42 into release/13.3 May 20, 2026
556 of 559 checks passed
@github-actions github-actions Bot added this to the 13.3.x milestone May 20, 2026
Jose Perez Rodriguez (joperezr) added a commit that referenced this pull request May 21, 2026
…17343)

* Fix Azure provisioning disabled input values (#17291)

Accept server-provided values for disabled interaction inputs so dynamic Azure provisioning fields such as Location can be populated after selecting an existing resource group. Preserve local edits for enabled inputs.

Co-authored-by: Damian Edwards <[email protected]>
Co-authored-by: Copilot <[email protected]>

* [release/13.3] Stop forcing MSBuild server for Aspire CLI builds (#17314)

* Stop forcing MSBuild server for CLI dotnet commands

Co-authored-by: davidfowl <[email protected]>

* Remove outdated override comment in DotNetCliRunner test

Co-authored-by: davidfowl <[email protected]>

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: davidfowl <[email protected]>

* Skip log publish for WinGet/Homebrew installer jobs (#17134)

These jobs only download already-built CLI archives and prepare
WinGet manifests / Homebrew casks; they never run the repo build,
so artifacts/log/$(_BuildConfig) is never produced. With
enablePublishBuildArtifacts: true, the Arcade 1ES job template
injects a Publish Logs pipelineArtifact output whose targetPath
points at that empty/missing directory. 1ES path validation on
that output fails the job (continueOnError on the CopyFiles step
doesn't help because the failure is on the 1ES publish output
itself).

Set enablePublishBuildArtifacts: false on the WinGet/Homebrew
installer stage in both the internal (azure-pipelines.yml) and
unofficial (azure-pipelines-unofficial.yml) pipelines. There are
no build logs to publish from these jobs.

This fixes the Prepare Installers stage failures in the internal
pipeline (e.g. dnceng/internal build 2969660).

Co-authored-by: Ankit Jain <[email protected]>
Co-authored-by: Copilot <[email protected]>

* Bump patch version from 13.3.4 to 13.3.5 (#17315)

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: joperezr <[email protected]>

* Revert "Bump patch version from 13.3.4 to 13.3.5 (#17315)"

This reverts commit 70b33bc.

---------

Co-authored-by: aspire-repo-bot[bot] <268009190+aspire-repo-bot[bot]@users.noreply.github.com>
Co-authored-by: Damian Edwards <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: David Fowler <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: davidfowl <[email protected]>
Co-authored-by: Ankit Jain <[email protected]>
Co-authored-by: joperezr <[email protected]>
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 20, 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.

3 participants