Hello @gavin,
Welcome to Microsoft Q&A forum.
I HAVE TRIED REINSTALLING VISUAL STUDIO A TOTAL OF 50 TIMES AND ALSO REINSTALLING THE SDKS ASWELL AS DOWNLOAD OTHER SDK VERSION.
I think you have installed the Windows SDKs correctly. The issue might be that VS fails to detect the installed Windows SDKs.
Please firstly check and confirm that the Windows SDK folder named "10.0.20348.0" exists under C:\Program Files (x86)\Windows Kits\10\Include
.
Then try following:
- Open Control Panel, find the installed "Windows Software Development Kit - Windows 10.0.20348.X", right-click it, select Change, choose Repair to repair it (you can also try to uninstall it and then reinstall Windows SDK manually). Check if VS detects it.
- Install a previous version of Visual Studio with Windows 10.0.20348.0 selected. For example, I assume you are using VS 2022, install VS Professional 2019(close VS and VS Installer, run the VS Professional 2019 setup file, when VS Installer pops up automatically, switch to "Individual components" tab and search, select "Windows 10 SDK (10.0.20348.0)" option, install it). After you install VS Professional 2019, no need to start VS 2019, start VS 2022(I assume you are using VS 2022), create a new C++ project, check if the Windows SDK can be detected correctly.
Best Regards,
Tianyu
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
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.