Visible-light-mediated generation of nitrile oxides for the photoredox synthesis of isoxazolines and isoxazoles.