Moderate Republicans in the state also tried to paint Mr. Faso as an extremist last spring when their candidate , William F. Weld , the former governor of Massachusetts , unsuccessfully sought the party 's nomination for New York governor .