Convert driver from windows 10 to win7

Hi all,

As title, What should I do to build a driver for windows 7 from source code of driver for windows 10?
Can I just change target OS version from windows 10 to windows 7 in VS2019?
Or I need to install vs2015, sdk wdk for windows 8.1 to build driver for windows 7?

I believe you can still select a Windows 7 target with the current WDK. Have you tried this? You don’t have to be running VS2015.