[release/13.2] Store temporary AppHost service under user .aspire directory#15415
Merged
joperezr merged 4 commits intorelease/13.2from Mar 20, 2026
Merged
[release/13.2] Store temporary AppHost service under user .aspire directory#15415joperezr merged 4 commits intorelease/13.2from
joperezr merged 4 commits intorelease/13.2from
Conversation
…ectory Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 15415Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 15415" |
mitchdenny
approved these changes
Mar 20, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Moves temporary AppHost server artifacts created by the Aspire CLI from the machine temp directory into the user-scoped ~/.aspire directory, aligning SDK-mode and bundle-mode behavior and adding regression coverage.
Changes:
- Update
DotNetBasedAppHostServerProjectto place generated host projects under~/.aspire/hosts/<hash>. - Update
PrebuiltAppHostServerto place bundle-host working directories under~/.aspire/bundle-hosts/<hash>. - Add/extend tests to validate both paths now root under the user Aspire home.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
src/Aspire.Cli/Projects/PrebuiltAppHostServer.cs |
Switch bundle-host working directory root from temp to ~/.aspire. |
src/Aspire.Cli/Projects/DotNetBasedAppHostServerProject.cs |
Switch generated AppHost server project location from temp to ~/.aspire/hosts. |
tests/Aspire.Cli.Tests/Projects/PrebuiltAppHostServerTests.cs |
Add regression test asserting bundle-host working directory is under user Aspire home. |
tests/Aspire.Cli.Tests/Projects/AppHostServerProjectTests.cs |
Add regression test asserting project model path is under user Aspire home. |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
eerhardt
approved these changes
Mar 20, 2026
Contributor
|
🎬 CLI E2E Test Recordings — 53 recordings uploaded (commit View recordings
📹 Recordings uploaded automatically from CI run #23323332387 |
joperezr
added a commit
to joperezr/aspire
that referenced
this pull request
Mar 20, 2026
…pire directory (microsoft#15415)" This reverts commit 84563b3.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This changes the temporary AppHost service storage used by the CLI on
release/13.2from the machine temp directory to the user-scoped~/.aspiredirectory.It updates both the generated AppHost server project path and the prebuilt bundle-host working directory so temporary AppHost service artifacts are stored under the user's Aspire home instead of
Path.GetTempPath().It also adds regression tests covering both code paths.
Fixes # (issue)
Validation:
./restore.sh./dotnet.sh test tests/Aspire.Cli.Tests/Aspire.Cli.Tests.csproj -- --filter-class "*.AppHostServerProjectTests" --filter-class "*.PrebuiltAppHostServerTests" --filter-not-trait "quarantined=true" --filter-not-trait "outerloop=true"Checklist
<remarks />and<code />elements on your triple slash comments?aspire.devissue: