A partnership that donated a preservation easement over a building in a historic district is not entitled to a nearly $24 million tax deduction, the U.S. Tax Court affirmed Thursday, saying the building was not listed on the National Register of Historic Places or federally certified.