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

I am having this same issue but confuse how to implement this solution. I have the engine root in my D:/ drive and the project in G:/ drive. It knows the project path, but what would I type in the Games.uprojectdirs file?

Would it be:
G:/Projects/MyProject ?