Set The TagetTypes and TargetNames.