Repository navigation
Conversation
When DotNetRoot resolves to a path with spaces (e.g. C:\Program Files\dotnet\), the dotnet-install script path and install directory are split on the space character, causing powershell.exe -File to fail with: Processing -File C:\Program failed because the file does not have a .ps1 extension. This quotes scriptPath and InstallDir in the PowerShell and bash argument strings, and also quotes the chmod argument on Unix. Same class of fix as #3737. Co-authored-by: Copilot <[email protected]>
lewing
force-pushed
the
fix/msbuild-bootstrap-path-quoting-10.0.4xx
branch
from
June 5, 2026 13:10
d7a33e1 to
d7da109
Compare
Member
|
this is not enough, it'll also fail in sdk; fixing it in our codeflow #7061 |
Member
Author
every branch is failing |
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.
Cherry-pick of #7075 to release/10.0.4xx to unblock currently-broken Windows builds.
All Windows legs on 10.0.4xx official and PR builds are failing with:
\
Install-scripts was not executed successfully
\\
Root cause: 1ES agents were updated with SDK 10.0.300 system-wide at \C:\Program Files\dotnet, causing \DotNetRoot\ to resolve to a path with spaces. The unquoted path breaks PowerShell's -File\ argument parsing.
See #7075 for full details.