Repository navigation
Fix default NuGet packages restore folder - #15416
Eric Erhardt (eerhardt) merged 5 commits into
Conversation
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 15416Or
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 15416" |
|
/backport to release/13.2 |
|
Started backporting to release/13.2: https://github.com/dotnet/aspire/actions/runs/23323572778 |
There was a problem hiding this comment.
Pull request overview
Updates RestoreCommand to use NuGet’s built-in settings resolution for the global packages folder instead of hard-coding ~/.nuget/packages, aligning behavior with NuGet defaults and config.
Changes:
- Replace hard-coded user-profile-based packages folder with NuGet settings-based resolution.
- Load NuGet configuration settings and compute the global packages folder via
SettingsUtility.
|
Re-running the failed jobs in the CI workflow for this pull request because 3 jobs were identified as retry-safe transient failures in the CI run attempt.
|
1ccd6b7 to
6c9c83a
Compare
|
Left some minor feedback but this looks good otherwise. |
We shouldn't default to ~/.nuget/packages. Instead we should use NuGet defaulting logic. Fix microsoft#15399 Fix microsoft#15404
Simplify the code to use the same patterns as NuGet.Client sources.
4babf7d to
18d72a0
Compare
|
No documentation PR is required for this change. Reason: This PR is a bug fix (#15404) that refactors the internal NuGet restore logic in
|
We shouldn't default to ~/.nuget/packages. Instead we should use NuGet defaulting logic.
Refactor the restore code using the patterns from the NuGet.Client sources. This simplifies the code.
Fix #15404