Skip to content

Filter NT target discovery by build mode - #1436

Open
5an7y-Microsoft wants to merge 3 commits into
mainfrom
user/jvalesmena/nt-target-run-mode
Open

5an7y-Microsoft wants to merge 3 commits into
mainfrom
user/jvalesmena/nt-target-run-mode

Conversation

@5an7y-Microsoft

@5an7y-Microsoft 5an7y-Microsoft commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Summary

- Discover target versions across all available kits
+ Filter discovery with -RunMode Auto|NuGet|WDK|EWDK
+ Build-Samples forwards its resolved environment mode

Auto selects EWDK, then NuGet, then WDK. Explicit XML paths still override discovery; missing rules never fall back to another source.

Evidence

  • Before: A newer installed WDK overrides an older restored NuGet kit; the regression test fails.
    After: Local source-isolation, Auto, XML, JSON and missing-source checks passed. Local Echo KMDF builds pass Debug/Release on x64/ARM64 (4/4). Test files are not included in this PR.
  • No new PSScriptAnalyzer diagnostics.

Merge Danger

Door: two-way

Blast Radius: discovery

Only target-version discovery and its build-runner call change.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 3fdd1596-8ea5-4786-b214-f061c07e744f
@5an7y-Microsoft
5an7y-Microsoft requested a review from a team as a code owner November 18, 2026 21:24
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 3fdd1596-8ea5-4786-b214-f061c07e744f
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 3fdd1596-8ea5-4786-b214-f061c07e744f
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