Steve,
I feel your pain, I have given advice about this on my website:
http://www.dotnetnuclear.com/articles/tabid/88/ID/11/MVP-Module-Development-Template-Installation-Configuration-Troubleshooting.aspx
I am not aware of anything you can do in Visual Studio to prevent this issue, but if you find something, let me know.