Windows驱动编译错误:Invalid argument <CN=“WDKTestCert .. for property <TestCertificate>

VS2019编译WDK驱动时,出现如下错误:

Error  Invalid argument <CN="WDKTestCert ***,132133362558802479" | FBBCDF5D96908267CECF45FBC2C28998A269A6CB> for property <TestCertificate>.    TBC_Driver    C:\Program Files (x86)\Windows Kits\10\build\WindowsDriver.common.targets   1435  

Windows驱动编译错误:Invalid argument <CN=“WDKTestCert .. for property <TestCertificate>

 -----------------------------------------------------------------------------------------------------------------------

解决方法:

右击工程,[属性]——[配置属性]——[Driver Signing]——[General],选择“Create Test Certificate”。重新编译。

Windows驱动编译错误:Invalid argument <CN=“WDKTestCert .. for property <TestCertificate>