Has anyone completed an asset purchase of a business with existing contracts in place without compromising those contracts?

An example of this would be the purchase of a construction company that has a sales pipeline of signed contracts that are between the existing corporate structure and the customer. Since an asset sale would mean the creation of a new entity, those existing contracts between the existing entity would not be enforceable by the new owner since the new owner didn't acquire the equity of the existing company.

I'm looking for creative ways to effectively have my cake and eat it too. Has anyone done this before? I'm game for open conversation, hypothetical or otherwise.

Thanks everyone!