Repository navigation
Fix DotNetPath trailing-separator escaping and add detail to dotnet-install failures in InstallDotNetCore - #17115
Merged
Merged
Conversation
ViktorHofer
marked this pull request as ready for review
July 14, 2026 08:15
ViktorHofer
enabled auto-merge (squash)
July 14, 2026 08:15
ViktorHofer
approved these changes
Jul 14, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR improves reliability and diagnostics when InstallDotNetCore invokes the dotnet-install script, addressing Windows path quoting edge cases and making failures easier to troubleshoot in build logs.
Changes:
- Trims trailing directory separators from
DotNetPathbefore embedding it in the quoted-dotnetPathargument to avoid Windows quote-escaping issues. - Expands the failure log to include runtime, version, exit code, and the invoked command line.
Show a summary per file
| File | Description |
|---|---|
| src/Microsoft.DotNet.Arcade.Sdk/src/InstallDotNetCore.cs | Adjusts dotnet-install argument construction and enriches failure logging for easier diagnosis. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 1/1 changed files
- Comments generated: 2
auto-merge was automatically disabled
July 14, 2026 08:53
Head branch was pushed to by a user without write access
Copilot
AI
requested review from
ViktorHofer and
Copilot
and removed request for
Copilot
July 14, 2026 08:57
ViktorHofer
reviewed
Jul 14, 2026
ViktorHofer
reviewed
Jul 14, 2026
ViktorHofer
approved these changes
Jul 14, 2026
akoeplinger
approved these changes
Jul 14, 2026
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.
InstallDotNetCorehad two issues when invoking the dotnet-install script:DotNetPath(common on Windows) escaped the closing quote in-dotnetPath "{DotNetPath}", producing a malformed double-backslash argument."dotnet-install failed", giving no indication of what actually failed.Changes
DotNetPathis stripped of trailingPath.DirectorySeparatorChar/Path.AltDirectorySeparatorCharbefore being embedded in the quoted argument.To double check: