Skip to content

Fix Windows CLI backchannel socket path#15444

Merged
joperezr merged 2 commits intomicrosoft:release/13.2from
eerhardt:FixWindows
Mar 20, 2026
Merged

Fix Windows CLI backchannel socket path#15444
joperezr merged 2 commits intomicrosoft:release/13.2from
eerhardt:FixWindows

Conversation

@eerhardt
Copy link
Member

@eerhardt eerhardt commented Mar 20, 2026

Customer impact

aspire run doesn't work on Windows machines because we aren't fully qualifying the socket path.

Testing

Manual

Regression

Yes, from previous build.

Copilot AI review requested due to automatic review settings March 20, 2026 17:04
@github-actions
Copy link
Contributor

github-actions bot commented Mar 20, 2026

🚀 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/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 15444

Or

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

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR aims to fix how the Aspire CLI generates the backchannel “socket path” on Windows so the AppHost/CLI IPC channel is created in a consistent, CLI-managed location.

Changes:

  • Removed the Windows-specific behavior that returned only the socket name (no directory) from CliPathHelper.CreateSocketPath.
  • Made CreateSocketPath always create/use ~/.aspire/cli/runtime/sockets and return a combined path.

@joperezr joperezr added the Servicing-approved Approved for servicing release label Mar 20, 2026
When using named pipes for the Guest AppHost, we need to just return a name, not a path.
/// </summary>
/// <param name="socketPrefix">The socket file prefix.</param>
internal static string CreateSocketPath(string socketPrefix)
internal static string CreateUnixDomainSocketPath(string socketPrefix)
Copy link
Member Author

Choose a reason for hiding this comment

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

We should rename this

Suggested change
internal static string CreateUnixDomainSocketPath(string socketPrefix)
internal static string CreateBackChannelSocketPath(string socketPrefix)

@joperezr joperezr merged commit 1b339b0 into microsoft:release/13.2 Mar 20, 2026
255 of 257 checks passed
@dotnet-policy-service dotnet-policy-service bot added this to the 13.2 milestone Mar 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Servicing-approved Approved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants