​President Trump fired back at actress Debra Messing in a Sunday tweet after the “Will and Grace” star called for outing those who ​show up for the president’s​ big-money fundraiser ​later this month in ​Beverly Hills.

“I have not forgotten that when it was announced that I was going to do The Apprentice, and when it then became a big hit, helping NBC’s failed lineup greatly,​ ​@DebraMessing

came up to me at an Upfront & profusely thanked me, even calling me ​’​Sir.​’​ How times have changed!​,” the president posted on his Twitter account.

​Messing and her NBC co-star Eric McCormack ​said they would shame the Trump supporters in Hollywood who attend the fundraiser, where tickets could go for as much as $100,000 a couple.

“Please print a list of all attendees please. The public has a right to know,” Messing tweeted Friday after the Hollywood Reporter published a story about the event.

M​cCornick also weighed in on Twitter.

“Hey, @THR,” McCormack wrote. “Kindly report on everyone attending this event, so the rest of us can be clear about who we don’t wanna work with. Thx.”

The political soiree will be held on Sept. 17 – in the middle of Emmy Week in Hollywood – and will be hosted by Republican National Committee chairwoman Ronna McDaniel, RNC co-chairman Tommy Hicks Jr., campaign manager Brad Parscale and Trump Victory finance chairman Todd Ricketts.

Billionaire real estate mogul Stephen Ross, whose company operates Equinox and SoulCycle, was roundly criticized last month for hosting a Hamptons fundraiser for Trump.

Ross’ Related Companies developed the Hudson Yards.