diff options
| author | 5an7y <[email protected]> | 2026-04-02 15:36:34 -0700 |
|---|---|---|
| committer | 5an7y <[email protected]> | 2026-04-02 15:36:34 -0700 |
| commit | 1a672e37d6773fa8324d358d0191f4e6fce19d47 (patch) | |
| tree | 22253cb82a8a02cedd7406db9314cbe7097ad870 /wpd/WpdBasicHardwareDriver | |
| parent | c4c1704e398b8ca96bf25f519802ae86182c140f (diff) | |
refactor: consolidate VS detection into Resolve-BuildEnvironment
- Remove Initialize-DevShell as a separate step; VS Dev Shell setup is
now fully owned by Resolve-BuildEnvironment alongside mode detection.
This eliminates the ordering problem where vswhere ran unconditionally
before knowing whether the environment was EWDK (which needs no VS).
- Fix EWDK regression: EWDK mode now returns early before any vswhere
or Dev Shell logic is invoked.
- Fix Auto+WDK from plain terminal: the old isWdk guard required
UCRTVersion to be set before the Dev Shell was opened, making Auto
detection fail on a clean terminal. Removed the guard; the code now
falls through to Dev Shell setup and validates UCRTVersion afterward.
- Fix VSINSTALLDIR trailing-backslash mismatch: when the Dev Shell is
already active, VSINSTALLDIR ends with '\' while vswhere installationPath
does not. Added TrimEnd('\') on both sides before comparing.
- Renumber Build-Samples.ps1 step comments (old Step 5 'Detect Build
Environment' merged into Step 1; remaining steps renumbered).
Co-authored-by: Copilot <[email protected]>
Diffstat (limited to 'wpd/WpdBasicHardwareDriver')
0 files changed, 0 insertions, 0 deletions
