How can I resolve the error "Couldn't find target rules file for target 'MyProjectName'" when building a project?

It means this project is using Unreal Studio(Datasmith). UnrealEngine now is a complicated beast, a little hidden problem drives me crazy.