There's a famous weight-gaining diet called Gallon Of Milk A Day (GOMAD) recommended by strength coaches, most recently Mark Rippetoe of Starting Strength. He gets asked about it a lot: https://startingstrength.com/resources/forum/general-q-and-a...