Repository navigation
[release/10.0.3xx] Quote spaced dotnet paths in bootstrap, sdk overlay, and build-server shutdown - #7080
Merged
JanProvaznik merged 3 commits intoJun 5, 2026
Conversation
…tCoreTask Cherry-pick of the fix from #7061 (release/10.0.4xx). When the build SDK resolves to C:\Program Files\dotnet (arcade reusing the machine-wide install on the new agent image), the unquoted -File/-InstallDir args broke PowerShell parsing. Quote the script path and install dir (root-preserving trim of a trailing separator so a quoted path ending in a backslash does not escape the closing quote). Co-authored-by: Copilot <[email protected]>
…path Cherry-pick from #7061. Unquoted "$(DotnetTool) --version" failed with exit code 9009 when DotnetTool resolves to C:\Program Files\dotnet\dotnet.exe. Matches dotnet/sdk main and the other already-quoted $(DotNetTool) Exec calls. Co-authored-by: Copilot <[email protected]>
Cherry-pick from #7061. The build-server shutdown Exec ran the dotnet path unquoted; with a spaced build SDK (C:\Program Files\dotnet) cmd parsed "C:\Program" and printed "is not recognized". IgnoreExitCode="true" masked the failure, so the compiler server was never shut down, causing "file is being used by another process" errors during CleanupRepo. Quote the path. Co-authored-by: Copilot <[email protected]>
ViktorHofer
approved these changes
Jun 5, 2026
JanProvaznik
enabled auto-merge (squash)
June 5, 2026 14:47
lewing
approved these changes
Jun 5, 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.
Summary
Cherry-picks the three spaced-path quoting fixes from #7061 (release/10.0.4xx) to release/10.0.3xx.
Why 10.0.3xx is affected (and 10.0.1xx is not)
The new
windows.vs2026.amd64agent image (2026.0529) ships SDK 10.0.300 atC:\Program Files\dotnet. When a branch'sglobal.jsonmatches that version, arcade reuses the machine-wide (spaced) install asDOTNET_INSTALL_DIR/DotNetRoot/DotnetToolinstead of provisioning the repo-local.dotnet, exposing latent unquoted-path bugs.global.jsonSDK.dotnet)10.0.3xx hasn't been bitten yet only because its latest build happened to run on the old (0522) image; the next 0529 agent will hit it.
The three fixes (each a cherry-pick from #7061)
InstallDotNetCoreTask.cs— quote the dotnet-install script path and install dir; root-preserving trim of a trailing separator so a quoted path ending in\doesn't escape the closing quote. (PowerShell-File 'C:\Program'parse error.)OverlaySdkOnLKG.targets— quote$(DotnetTool) --version(cmdC:\Program→ exit 9009). Matches dotnet/sdkmain.repo-projects/Directory.Build.targets— quote$(DotNetTool) build-server shutdown(masked byIgnoreExitCode="true", but leaves the compiler server running → CleanupRepo file-lock errors).Notes
global.jsonis ever bumped to 10.0.300, it would need the same fixes.Directory.Build.targetschange is VMR-authored and durable here.