[ClH:1].[NH2:2][C:3]1[CH:7]=[C:6]([CH3:8])[NH:5][N:4]=1.C(O[CH:12]=[CH:13][C:14]#[N:15])C>O>[ClH:1].[CH3:8][C:6]1[CH:7]=[C:3]2[N:2]=[CH:12][CH:13]=[C:14]([NH2:15])[N:4]2[N:5]=1150 cc of 35% hydrochloric acid were introduced into a 500 cc three-necked flask equipped with a magnetic stirrer, a thermometer and a condenser, and 47.5 g of 3-amino-5-methylpyrazole dissolved in 100 cc of water were added dropwise. The temperature rose to 60° C. 47.5 g of 3-ethoxyacrylonitrile were then added and the reaction was refluxed for 1 h. The reaction medium was cooled and concentrated under reduced pressure. 50 cc of acetone were added and the precipitate obtained was filtered off. It was rinsed with diisopropyl ether. After drying under vacuum over phosphorus pentoxide, 78.7 g of 2-methylpyrazolo[1,5-a]pyrimidin-7-ylamine hydrochloride were obtained in the form of white crystals. (Yield=83%).