Visual Studio 2019 kernel mode driver projects stopped generating .sys files.

Jack Melville 1 Reputation point
2021-01-25T21:13:55.383+00:00

Visual Studio 2019 kernel mode driver projects stopped generating .sys files. On a project folder previously built with VS2019 I delete the x86 and x64 output folders and build again. Obj files are built but the only linker output file present is vc142.pdb. The first error seen is from signtool when it tries to sign the .sys file.

The link.write.1.tlog file shows the files being written:

^C:\FORESIGHT\IDEA-GIT.3.5.033\IDEADRV\IDEADRV\X86\RELEASE\CAPTURE.OBJ|C:\FORESIGHT\IDEA-GIT.3.5.033\IDEADRV\IDEADRV\X86\RELEASE\COMPRESS.OBJ|C:\FORESIGHT\IDEA-GIT.3.5.033\IDEADRV\IDEADRV\X86\RELEASE\DEVICE.OBJ|C:\FORESIGHT\IDEA-GIT.3.5.033\IDEADRV\IDEADRV\X86\RELEASE\FILTER.OBJ|C:\FORESIGHT\IDEA-GIT.3.5.033\IDEADRV\IDEADRV\X86\RELEASE\FORMATS.OBJ|C:\FORESIGHT\IDEA-GIT.3.5.033\IDEADRV\IDEADRV\X86\RELEASE\GRABBER.OBJ|C:\FORESIGHT\IDEA-GIT.3.5.033\IDEADRV\IDEADRV\X86\RELEASE\IDEADRV.RES|C:\FORESIGHT\IDEA-GIT.3.5.033\IDEADRV\IDEADRV\X86\RELEASE\PREVIEW.OBJ
C:\FORESIGHT\IDEA-GIT.3.5.033\IDEADRV\IDEADRV\X86\RELEASE\IDEADRV32.SYS
C:\FORESIGHT\IDEA-GIT.3.5.033\IDEADRV\IDEADRV\X86\RELEASE\IDEADRV32.PDB

This happens on 2 systems. I tried updating VS2019, same result. I haven't tried to build a driver for about 2 months, it worked on 11/17/2020 with the same folder on the same computers.

Thanks,
Jack Melville

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,448 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Dylan Zhu-MSFT 6,421 Reputation points
    2021-01-26T05:00:53.6+00:00

    Hi JackMelville,

    Please try to delete the .vs folder, then start visual studio and rebuild your project. And check if the generated files exist in the release folder which next to sln file. 60501-image.png Best Regards, Dylan

    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our * *documentation* to enable e-mail notifications if you want to receive the related email notification for this thread.**


  2. Dipsan Dhimal 0 Reputation points
    2025-03-13T02:02:26.1033333+00:00

    how did you install KMDF with WDK i dont know how to make

    0 comments No comments

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.