Section 54F will apply only if you construct a house within 3 years of the asset sale that you are trying to offset capital gains.