Weight gain during perimenopause

How do you ladies deal with the weight gain that comes along with perimenopause? My body doesn't respond to dieting and exercising like it used to. I just keep piling on the weight. I want to lose this weight so badly. Any advice appreciated. Ty.