VS 2012 launching app based on wrong path

前端 未结 7 1314
予麋鹿
予麋鹿 2020-12-25 13:33

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\

7条回答
  •  北荒
    北荒 (楼主)
    2020-12-25 14:01

    I had a similar situation where I had copied a project. After running the project it displayed the original project in the browser rather than my copied, edited version. My solution was to remove all the effected sites from the config file:

    C:\Users\%USERNAME%\Documents\IISExpress\config\applicationhost.config

    I then had to right click the project in Visual Studio, click Properties then click the Web tab, on this tab I changed the port specified in the Project Url and saved. Visual Studio then asked if I wanted to add the project back to the application host configuration file. I clicked yes and run the project, suddenly all was fine.

    My particular problem was not a bug in Visual Studio but rather a configuration mismatch.

提交回复
热议问题