Visual Studio clean solution leads to UnrealBuildTool.* in the Engine installation directory being deleted. After this, “generate VS project files” stop working. The only solution is to use Epic Game Store to verify UE5 installation and redownload the tools.