Skip to content

[release/10.0.1xx] Normalize project paths in Arcade Build.proj restore exclude - #6873

Merged
lewing merged 1 commit into
release/10.0.1xxfrom
backport/pr-6867-to-release/10.0.1xx
May 27, 2026
Merged

lewing merged 1 commit into
release/10.0.1xxfrom
backport/pr-6867-to-release/10.0.1xx

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Backport of #6867 to release/10.0.1xx

/cc @akoeplinger

The Exclude="@(_ProjectToRestoreWithNuGet)" was a literal item-spec
compare, so user-supplied paths with redundant separators (e.g.
'/repo//src/foo.csproj') would not match the NuGet-normalized paths
returned by _IsProjectRestoreSupported. The project then ended up in
_ProjectToRestore twice and was restored in parallel, racing on
project.assets.json and producing the flaky:

    error : The file '.../project.assets.json' already exists.

Project the items through %(FullPath) on both sides so the comparison
is path-form-independent.

Co-authored-by: Copilot <[email protected]>
@dotnet-policy-service
dotnet-policy-service Bot requested a review from a team May 27, 2026 18:10
@lewing
lewing merged commit e270b1b into release/10.0.1xx May 27, 2026
11 checks passed
@lewing
lewing deleted the backport/pr-6867-to-release/10.0.1xx branch May 27, 2026 23:58
@akoeplinger

Copy link
Copy Markdown
Member

not backporting to other branches since this will flow in via arcade at some point

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants