Elmer's craft spray adhesive works well on foam core. Walmart has it. Just be sure to protect surrounding areas from over spray.
I also use it to attach ground covers on vertical surfaces. Spray the surface lightly to make it tacky then put the ground foam on a sheet of paper or cardboard and blow it onto the surface.
BT