[NH2:1][C:2]1[CH:9]=[CH:8][C:5]([C:6]#[N:7])=[C:4]([CH3:10])[N:3]=1.[Cl:11][CH2:12][CH:13]=O>C(O)C>[ClH:11].[CH3:10][C:4]1[N:3]2[CH:12]=[CH:13][N:1]=[C:2]2[CH:9]=[CH:8][C:5]=1[C:6]#[N:7]To a solution of 6-amino-2-methylnicotinonitrile (960 mg) in ethanol (34 ml) was added a 40% aqueous chloroacetaldehyde solution (2.36 ml) at 60° C. The reaction mixture was refluxed for 8 hours. The resulting precipitates were collected by filtration to obtain 5-methylimidazo[1,2-a]pyridine-6-carbonitrile hydrochloride (580 mg) as a white solid.