Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS 2012 launching app based on wrong path

Tags:

I have a app which is under source control (TFS 2012 also) on c:\Dev\MyApp\Main.

Because im developing a new feature I decided to open a branch on c:\Dev\MyApp\BranchNewFeature.

I developed and when I decided that it was time to test it was like i hadn't done any changes at all. I hit F5 and i see the baseline version of the app... Looking into it I noticed a very curious fact: When i check IIS Express the "launch path" for the applications is the old one (c:\Dev\MyApp\Main).

Can anyone help me make IIS Express point to the new path? (C:\Dev\MyApp\BranchNewFeature)

like image 853
Leonardo Avatar asked Apr 04 '13 17:04

Leonardo


1 Answers

I ran into the same issue. To fix it, I used cheesemacfly's suggestion, to update C:\Users\%USERNAME%\Documents\IISExpress\config\applicationhost.config to point to the new directory.

The obvious downside with this solution is that you need to do this repeatedly if you plan on switching between your new branches often. Seems like a bug in VS2012...

like image 115
Chris Gillum Avatar answered Nov 08 '22 16:11

Chris Gillum