UnrealBuildTool.exe' has exited with code 6 (0x6)

Hi all,
I am try to build a previous version of UE, I cloned the repository from github and did the build, but when i come to debug I get the error:

UnrealBuildTool.exe’ has exited with code 6 (0x6)

any ideas what I am doing wrong?

I just noticed that the UnrealBuildTool opens and closes with an error message No Platoforms Specified for Target

You need to set the UE4 project as Startup Project first. Right click on UE4 in Solution Explorer and Set As Startup Project.

Well, after making lots of things with no resutl, I updated Visual Studio 2022 and added the extension of “Game Development with C++” which includes Unreal Engine on it’s description.

That worked for me!

Good luck