In Visual Studio when I open an ASP.NET application it will check IIS and offer to setup a site if needed to run my application under (assuming I am using IIS and not the integrated development server of course).
This works fine unless I have multiple copies of the same application at different physical locations on my computer.
I could have a test and dev copy that I work on, because the physical path is different for both of these c:\web\test\ and c:\web\dev Visual Studio will not load the project as it will display an error saying IIS is already configured to use a different path.
Is there some way to adjust them via a script that would execute when VS 2010 is opening the project? So I can automatically set the physical path in IIS depending on which project/solution I open?