Visual Studio offers a number of command line switches that allow you to run the IDE and perform a specified task. You can get a complete list and more information here Visual Studio Command Line Switches .
Here are a couple I’ve used.
This comes in handy when updating a web reference and get this error: “The components required to enumerate web references are not installed on this computer…” The error goes on to suggest re-installing visual studio. But, what this really means is at some point during start up a visual studio extension did threw and error and you said yes to not load it in the future. All you need to do is run the above command and you should be able to update your web reference.
Running this will create …\Application Data\Microsoft\VisualStudio\9.0\ActivityLog.xml. I haven’t used this personally, but the vendor of a third party tool I’m using asked for it to help troubleshoot an issue. I thought I’d pass it along.