I have a ClickOnce winforms application which I am debugging in the VS2010 IDE. I have a catch-all unhandled exception handler which also gives the user the option to restart execution. Calling Application.Restart() works fine, but when debugging, it restarts detached from the debugger.
Is there a way to make VS automatically attach it when it restarts? If so, how? If not, why not?