An antimagic field remains if the caster is killed or incapacitated, can't be affected by dispel magic, and only has a partial chance (generally 20% at best) of being affected by mage's disjunction. As far as I can gather from the description, spell immunity won't work either.
Is there any remotely reliable way of either taking down an antimagic field or rendering oneself immune to its effects? Counterspelling is an obvious possibility, but only if you're prepared for it, and a ring of counterspells won't work because AMF isn't a targeted spell.
I'm not interested in ways to wait out the problem. Researching a reverse time stop spell to speed up the AMF caster's duration expiration speed is also out of the question.