How may I resolve an error "Couldn't find target rules file for target 'ProjectName' when building a project?

This solved it for me too!