"No source code was seen during the build." is reported when using CodeQL CLI to create database.

王志超 11 Reputation points

To complete the "Static Tools Logo Test" test in HLK, I downloaded CodeQL v2.4.6 and the repository to generate a log file in sarif format. But when I run my batch file by VS2022 to create the database, an error is reported as follows: No source code was seen during the build.


This causes the database creation to fail! Then i cannot generate the log file in sarif format!

My target test system is Win10 21H2 LTSC, so I downloaded the WHCP_21H2 branch of the repository "Windows Driver Developer Supplementary Tools" and downloaded CodeQL CLI v2.4.6 according to the requirements of the WHCP_21H2 branch. I enabled "post generation event" for VS2022 and edited the corresponding bat script. However, during the database creation phase, an error will be reported as follows:
No source code was seen during the build.

I have searched for many forums but failed to solve this problem. Please help me, thank you!

Windows Hardware Performance
Windows Hardware Performance
Windows: A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.Hardware Performance: Delivering / providing hardware or hardware systems or adjusting / adapting hardware or hardware systems.
1,463 questions
0 comments No comments
{count} votes