Skip to content

Conversation

mitchdenny
Copy link
Member

@mitchdenny mitchdenny commented Apr 4, 2025

This PR improves the way that we prompt for the output path in the aspire new command. Previously we howed the absolution path as a default. Now we show a relative path which the user can accept or override with a new relative path or a new absolute path:

aspire-new-path-fix.mp4

@mitchdenny mitchdenny requested review from Copilot and removed request for Copilot April 4, 2025 01:44
@github-actions github-actions bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Apr 4, 2025
@mitchdenny mitchdenny requested a review from davidfowl April 4, 2025 01:44
@mitchdenny mitchdenny self-assigned this Apr 4, 2025
Copy link
Contributor

@Copilot 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.

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

Comments suppressed due to low confidence (2)

src/Aspire.Cli/DotNetCliRunner.cs:26

  • Ensure that appending projectFile.FullName to the msbuild arguments is intended and that projectFile is valid in all execution paths.
string[] cliArgs = ["msbuild", "-getproperty:IsAspireHost,AspireHostingSDKVersion", projectFile.FullName];

src/Aspire.Cli/Commands/NewCommand.cs:95

  • Verify that using pathAppendage directly as the default output path meets the requirement for a relative path and does not inadvertently impact downstream file operations that might expect an absolute path.
defaultValue: pathAppendage ?? ".",

@mitchdenny mitchdenny added area-cli and removed needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners labels Apr 4, 2025
@mitchdenny mitchdenny added this to the 9.2 milestone Apr 4, 2025
@mitchdenny mitchdenny merged commit 3b1cc5a into main Apr 4, 2025
174 checks passed
@mitchdenny mitchdenny deleted the mitchdenny/aspire-new-improved-pathing branch April 4, 2025 03:05
@mitchdenny
Copy link
Member Author

/backport to release/9.2

Copy link
Contributor

github-actions bot commented Apr 4, 2025

Started backporting to release/9.2: https://github.com/dotnet/aspire/actions/runs/14257138490

@github-actions github-actions bot locked and limited conversation to collaborators May 4, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants