The present invention relates to compounds of formula (I), wherein R1, R2and R3are as described herein, and their prodrugs or pharmaceutically acceptable salt, enantiomer or diastereomer thereof, and compositions including the compounds and methods of using the compounds as TLR7 agonists for the treatment and prophylaxis of virus infections.