Repository navigation
Remove trailing line continuation in source-build step - #17800
Merged
akoeplinger merged 1 commit intoNov 12, 2026
Merged
Conversation
The source-build Build step ended with `$portableBuildArgs \`. Azure Pipelines trims the script, so the generated file ends with a backslash and no newline. Bash 5.2 drops it, but bash 5.3 (Azure Linux 4) passes a literal `\` argument to build.sh, which fails with MSB1008: Only one project can be specified. Co-authored-by: Copilot <[email protected]>
richlander
added a commit
to dotnet/aspnetcore
that referenced
this pull request
Nov 12, 2026
Bash 5.3 in the Azure Linux 4 cross image turns the trailing line continuation in Arcade's source-build step into a literal `\` argument (MSB1008). Stay on Azure Linux 3 until dotnet/arcade#17800 flows in. Tracked by #70524. Co-authored-by: Copilot <[email protected]>
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues were reported for the change removing the unnecessary trailing backslash from the source-build script.
No open issues 🎉
What changed in this PR
Fixes the shared source-build pipeline step so a trimmed script does not pass a literal \ argument to build.sh under Bash 5.3, causing MSBuild error MSB1008.
Changes:
- Removes the trailing line-continuation character after
$portableBuildArgs, leaving the build arguments unchanged.
| File | Description |
|---|---|
eng/common/core-templates/steps/source-build.yml |
Removes the unnecessary final backslash from the Build script. |
Review effort: Balanced
3 of 4 tasks
mthalman
approved these changes
Nov 12, 2026
akoeplinger
approved these changes
Nov 12, 2026
akoeplinger
deleted the
users/richlander/source-build-trailing-backslash
branch
November 12, 2026 16:48
2 of 4 tasks
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.
The source-build
Buildstep ineng/common/core-templates/steps/source-build.ymlends with a line continuation ($portableBuildArgs \). Azure Pipelines trims the script, so the generated.shfile ends with a backslash and no trailing newline.\argument tobuild.sh, and MSBuild then fails withMSB1008: Only one project can be specified.This was hit in dotnet/aspnetcore#70522 after moving the source-build container to
azurelinux-4.0-net11.0-cross-amd64:Fix: remove the trailing
\.To double check:
Validation: reproduced in the
azurelinux-3.0-net11.0-cross-amd64(bash 5.2.15) andazurelinux-4.0-net11.0-cross-amd64(bash 5.3.9) images. Running a script that ends in\with no newline yields a literal\argument only on 5.3; without the trailing\both behave correctly. Template YAML parses.Note
This PR description was generated with the help of GitHub Copilot.