diff options
| author | 5an7y <[email protected]> | 2026-06-22 15:52:55 -0700 |
|---|---|---|
| committer | 5an7y <[email protected]> | 2026-06-22 15:52:55 -0700 |
| commit | 6c6c308f1fe6ec1ce2ce7d0d7b3b455305a4a346 (patch) | |
| tree | f7dbed4a544e222be3a7b442a101a51e5bd4cb59 /serial/VirtualSerial/comsup.cpp | |
| parent | a659bfc6b48a908a0b244d32de575bcf30033e7b (diff) | |
Add -NtTargetVersion to build samples against older WDK library sets
Expose the WDK '_NT_TARGET_VERSION' property (the OS version of the libraries
the driver links against) as -NtTargetVersion / WDS_NtTargetVersion. Unlike
-TargetVersion (Target OS Version), this does not change the platform model, so
Universal/Windows Driver samples keep building on Windows 10 while linking
against an older library set.
The parameter accepts the Windows build number (e.g. 10.0.22000), maps it to the
NTDDI code from the WDK DriverGeneral.xml rule, and passes -p:_NT_TARGET_VERSION
to msbuild (threaded through Build-SingleSample and the parallel runspace). It
defaults to the latest (10.0.28000) and is surfaced in the build plan, summary,
and HTML report title. Documented in Building-Locally.md.
Co-authored-by: Copilot <[email protected]>
Diffstat (limited to 'serial/VirtualSerial/comsup.cpp')
0 files changed, 0 insertions, 0 deletions
