[NH2:1][C:2]1[NH:3][C:4]2[N:5]([N:9]=[CH:10][CH:11]=2)[C:6](=O)[CH:7]=1.P(Cl)(Cl)([Cl:14])=O>C(Cl)Cl.CC(OC)(C)C>[Cl:14][C:6]1[N:5]2[N:9]=[CH:10][CH:11]=[C:4]2[N:3]=[C:2]([NH2:1])[CH:7]=1A solution of 5-aminopyrazolo[1,5-a]pyrimidin-7(4H)-one (Z-2) (1.5 g, 10 mmol) in phosphoryl chloride (45 mL) is stirred at reflux overnight. The reaction mixture is allowed to cool to RT and concentrated in vacuo. The residue is then dissolved in ice-water (25 mL) and the resulting mixture is neutralized with aqueous NaOH solution (20%) to adjust the pH to 9-10. The mixture is extracted with ethyl acetate (3×50 mL) after which the combined organic layers are washed with brine (500 mL), dried over anhydrous Na2SO4 and filtered. The filtrate is concentrated in vacuo to afford the crude product which is slurried in a mixture of DCM/MTBE (3 mL/15 mL). The resulting solid is then collected by filtration to afford 7-chloropyrazolo[1,5-a]pyrimidin-5-amine (Z-3).