Efficient and regioselective one-step synthesis of 7-aryl-5-methyl- and 5-aryl-7-methyl-2-amino-[1,2,4]triazolo[1,5-a]pyrimidine derivatives.