You may react pyrimidine-2-carbonitrile derivative with dry ammonia in acetic acid to furnish the corresponding pyrimidine-2-carboximidamide derivative. For more on this reaction, please see Scheme 1 in the attached publication.
Using H2SO4 (70%) and heating at 60- 700C for about 6-8 hr, then pouring onto water, filter the product (carboximide), dry it well and pass stream of dry ammonia gas in an methanolic solution of the carboximide for enough time (about 2hr).
the most appropriate method is to dissolve the start in THF and add 10mL of 1M (Lithium bis(trimethylsilyl)amide) dropwise over 1h then left at rt for 8h, after that, 5mL of saturated ethanolic HCl was added while the mixture was in ice bath, the reaction completion was monitored by TLC