If you get “Build succeeded” but no .sys
output, the likely cause is a corrupted Visual Studio 2022 installation.
What fixed it for me was a full reinstall:
- Uninstalled Visual Studio 2022, WDK, and SDK
- Deleted the project solution (kept the main code file)
- Rebooted the PC
- Reinstalled Visual Studio 2022 (with the C++ workload + WDK extension)
- Installed the Windows SDK (offline via the ISO)
- Installed the Windows Driver Kit
- Opened VS 2022 → created a new “Kernel Mode Driver, Empty (KMDF)” project
After that, the build generated the .sys
file normally.
The only thing I hadn’t tried before was reinstalling Visual Studio itself, since I didn’t suspect it was the cause.