选择B.
A项 but前有实意动词do的时候,but后的不定式to要省略.
C项 当句中有实义动词do或to do,宾语是anything,everything或nothing时,不定式符号to要省略.
D项besides是介词,其后接doing.