Game Project outside UnrealEngine folder: Generate Project Files

I have put my game project outside of the Unreal Engine folder:

Engine: C:\Users\Matt\Documents\Dev\Game\UnrealEngine
Game: C:\Users\Matt\Documents\Dev\Game\mbhtruth

When I do this, GenerateProjectFiles does not seem to affect my Game Project, and I am unable to manually add new source files to the project.

How can I generate project files for the uproject outside of the UnrealEngine directory?

Thanks!

You can right click on the uproject in the game directory and in the context menu there is an option to Generate Project Files.

How does that work for UE5 cloned from github?