The one major rule of baking salmon in foil is not to overcook the fish and maintain moisture and tenderness. Baking salmon in foil does give a little leeway because the foil locks in moisture, but you want to pull it out when it is almost but not quite done at the thickest part.