Help me please >>The Windows SDK version 10.0.22000.0 was not found. Install the required version of Windows SDK or change the SDK version in the project property pages

Ahmad Hirzallah 0 Reputation points
2023-10-07T21:55:47.3033333+00:00

Hello,
Today was a very bad day for me, i tried for 7 hours since morning to solve this problem by uninstalling, reinstalling multiple times, watching all YouTube videos and reading a lot of articles to try to solve this problem but nothing comes :( :( ,

I uninstalled SDK and reinstalled it manually from the website nothing comes out and solved the problem.

When I run a "say hi" code in c++ visual studio nothing comes instead of this errors

code:MSB8036

The Windows SDK version 10.0.22000.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".  

what can i do to solve this please ...Microsoft

Microsoft 2

Microsoft 3

Microsoft 4

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,613 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,530 questions
Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
966 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,183 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Ahmad Hirzallah 0 Reputation points
    2023-10-07T21:57:12.8933333+00:00

    deleted comment


  2. Tianyu Sun-MSFT 27,271 Reputation points Microsoft Vendor
    2023-10-09T06:43:09.84+00:00

    Hello @Ahmad Hirzallah ,

    Welcome to Microsoft Q&A forum.

    Are you using any antivirus? If so, please try to disable it temporarily and check again.

    Please also try to reboot your machine, reset VS settings(running devenv /ResetSettings command in Developer Command Prompt for Visual Studio 2022 Community).

    In project properties page => expand Configuration Properties => select General => Windows SDK Version => try to choose "10.0 (latest installed version)" and check if it works.

    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.


  3. SEngr 0 Reputation points
    2024-04-17T12:23:13.82+00:00

    User's image

    Hi @Tianyu Sun-MSFT

    I am facing the same issue,
    1- I followed your suggestion i.e reset VS settings(running devenv /ResetSettings command in Developer Command Prompt for Visual Studio 2022 Community).

    2- Made it sure that no antivirus is active.
    3- Restarted VS & my PC.

    But it won't work still facing the same issue, for clarity added the snaps.
    Kindly guide to resolve. Thanks

    User's image