When using WDK in VS2019, I get this build error:
Error MSB8040: Spectre-mitigated libraries are required for this project
There are a lot of items in VS2019 setup that contains "spectre".
For each architecture you intend to build drivers for, install the Spectre mitigated libraries thru Individual Components -> Compilers, build tools, and runtimes -> MSVC v142 - VS 2019 C+ x64/x86 Spectre-mitigated libs (v14.21).
I think you need to install the following components: MSVC V142 - VS 2019 C++ x64/x86 Spectre-mitigated libs (v14.xx) C++ ATL for latest v142 build tools with Spectre-mitigations (x86 & x64) C++ MFC for latest v142 build tools with Spectre-mitigations (x86 & x64)
Which to install?