MSB8026 The Windows SDK version 10.0.20348.0 was not found

Wei, Li Yuan 0 Reputation points
2025-05-31T00:20:51.5633333+00:00

I have a problem with Windows SDK when building a project. This is the error message I got:

The Windows SDK version 10.0.20348.0 was not found. Install the required version of Windows SDK or change the SDK version in the project property pages or by right-clicking the solution and selecting "Retarget solution".

Here's the methods I've tried, but still no luck building a simple project

  1. Retarget Project, no use
  2. Retarget Solution, no use
  3. Windows SDK exists in path C:\Program Files (x86)\Windows Kits\10\Include\10.0.20348.0
  4. Uninstall and reinstall Windows SDK from Visual Studio Installer -> Restart Computer
  5. Repair option from Visual Studio Installer -> Restart Computer
  6. Uninstall and reinstall Visual Studio -> Restart Computer

I checked my $(WindowsSDK_IncludePath):

C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.44.35207\include

C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.44.35207\atlmfc\include

C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Auxiliary\VS\include

C:\Program Files (x86)\Windows Kits\10\Include\10.0.20348.0\ucrt

C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Auxiliary\VS\UnitTest\include

\Include\10.0.20348.0\um

\Include\10.0.20348.0\shared

\Include\10.0.20348.0\winrt

\Include\10.0.20348.0\cppwinrt

C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8.1\Include\um

I'm not sure why the SDK part is corrupted. How can I fix this issue? Please help! This issue is bugging me for days!

Developer technologies | Visual Studio | Setup
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.