No capital gains tax on home exchange?

IRS worker touts perk, but CPA disagrees

DEAR BENNY: My husband and I built a townhouse in 1983 for $33,000. We lived there for a few years and then rented it out for 17 years, taking all the tax advantages such as depreciation, etc.

In 2003 we sold it for $90,000, and did a like-kind exchange with a house that my husband built. That house has been rented for the past six years and now has a market value of $190,000. We have no liens on the home and would like to sell it and put the money towards our dream home.

If we moved into the home and lived there for two years, would we have to pay capital gains taxes when we sell the home?