A self-assembled crystalline microporous dendrimer framework (MDF) exhibits novel turn-on and ratiometric fluorescence upon exposure to solvent vapours. The donor-acceptor character, combined with the large surface area (>650 m2 g-1), allows the MDF to discriminate vapours of volatile solvents with turn-on and colour change of photoluminescence.