Comment
Comment by terminalcommand
The solution is actually simpler, set a property tax that would hurt if the buildings became vacant. For example if you pay 1% of the buildings value as property tax each year, it would make enough incentive to rent it out or sell if you don't need it. The proceeds can be used for building public housing projects or helping the homeless. Property tax was invented for this very reason.