Skip to content

Conversation

@sebastienros
Copy link
Member

Description

The paths in AspireWithMaui.slnx were not translated to its location and the solution would not load correctly. Tested locally, file in this PR updated from script.

Copilot AI review requested due to automatic review settings November 18, 2025 01:26
@github-actions
Copy link
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/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 13020

Or

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

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 fixes the relative path issue in AspireWithMaui.slnx where paths were not correctly translated relative to the solution's location, preventing the solution from loading properly. The fix updates the generation scripts to properly calculate relative paths from the AspireWithMaui directory.

Key changes:

  • Updated eng/restore-toolset.sh to use a Python script that calculates proper relative paths
  • Updated eng/restore-toolset.ps1 to use PowerShell URI-based path resolution
  • Regenerated AspireWithMaui.slnx with correct relative paths and added the missing Aspire.Hosting.Maui.Tests project

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
playground/AspireWithMaui/AspireWithMaui.slnx Regenerated file with corrected relative paths (../../ for root-level projects, ../ for sibling playground projects) and added Aspire.Hosting.Maui.Tests
eng/restore-toolset.sh Replaced sed-based approach with Python script for robust path resolution, added python3 prerequisite check, and logic to insert Maui tests project
eng/restore-toolset.ps1 Added helper functions for URI-based relative path calculation and XML manipulation, ensuring consistent path resolution on Windows

@JamesNK
Copy link
Member

JamesNK commented Nov 18, 2025

Why do the MAUI solution paths need to be relative but the normal solution paths don't?

@sebastienros
Copy link
Member Author

@JamesNK The maui solution is now in the Maui playground folder. The Aspire one is at the root.

@sebastienros sebastienros merged commit 600f309 into main Nov 20, 2025
875 of 881 checks passed
@sebastienros sebastienros deleted the sebros/mauifixpaths branch November 20, 2025 23:33
@dotnet-policy-service dotnet-policy-service bot added this to the 13.1 milestone Nov 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants