If any eminent domain proceedings are commenced to take or damage any private property for public use within this state and are thereafter dismissed with or without prejudice, the plaintiff seeking to be condemnor is liable for and shall pay to the defendant all court costs, expenses and fees, including reasonable attorney fees, as are determined by the court having jurisdiction over the proceedings.
SDCL 21-35-22