Skip to content

[vs18.11] Fix excludes with lexical include roots - #15147

Merged
rainersigwald merged 1 commit into
vs18.11from
backport/pr-15127-to-vs18.11
Sep 25, 2026
Merged

rainersigwald merged 1 commit into
vs18.11from
backport/pr-15127-to-vs18.11

Conversation

@github-actions

@github-actions github-actions Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Backport of #15127 to vs18.11.

Fixes #15126.

Work item (Internal use): 3069262

Summary

Fix incorrect wildcard exclusions in the Wave 18.11 optimized file enumerator.

Customer Impact

Files are silently included in items that should be excluded. This can break customer scenarios.

Reported as VS Feedback 11156765, severity "I'm unable to use this version."

A workaround is available via changewave 18.11 (MSBUILDDISABLEFEATURESFROMVERSION=18.11), but this changes other behavior and is intended only as a quick mitigation.

Regression?

Yes, from #14663.

Testing

Validation reported in the original PR #15127:

  • Unit tests
  • Validation on customer-provided repro from feedback issue
  • Added regression test coverage

Risk

Low. The change is localized and the updated codepath can still be avoided entirely via changewave if necessary.

/cc @rainersigwald

Fixes #15126.

The Wave 18.11 optimization in #14663 canonicalizes the direct
enumerator's include root but leaves exclude roots lexical. Shared `.`
or `..` segments then prevent exclusions from matching physical
enumeration paths.

Rebase each applicable Exclude's shared include-root prefix onto the
canonical enumeration root, preserving its lexical suffix and
output-path spelling. This restores legacy behavior without a new change
wave. Add coverage for relative and absolute include roots, file and
subtree exclusions, and lexical-path compatibility.

---------

Co-authored-by: Copilot App <[email protected]>
@rainersigwald
rainersigwald merged commit 3cde5c8 into vs18.11 Sep 25, 2026
11 checks passed
@rainersigwald
rainersigwald deleted the backport/pr-15127-to-vs18.11 branch September 25, 2026 16:41
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.

3 participants