Unreal Engine5: Error: Windows SDK must be installed in order to build this target

Hi;
I am trying to make a simple c++ project in unreal engine. I have installed the visual studio 2022. I also installed the window sdk for window 11. I also install the dotnet 3.1 version.
But after all this when I want to open some project and select C++ instead of blueprints unreal engine give me this error.

**An error occurred while trying to generate project files.

Running D:/Unreal engine/UE_5.0/Engine/Binaries/DotNET/UnrealBuildTool/UnrealBuildTool.exe -projectfiles -project=“C:/Users/alikj/OneDrive/Desktop/MyProject/MyProject.uproject” -game -rocket -progress
Log file: C:\Users\alikj\AppData\Local\UnrealBuildTool\Log_GPF.txt

Some Platforms were skipped due to invalid SDK setup: Win64, Android.
See the log file for detailed information

Discovering modules, targets and source code for project…
ERROR: Windows SDK must be installed in order to build this target.**

I have no idea what should I do, I search Youtube and all the other sites on google.
If some body has answer to that please help me,

I want to safely open the project with C++

1 Like