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

王志超 16 Reputation points
2022-10-25T05:51:03.077+00:00

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.

253709-1.png

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,619 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.