VS 2012 launching app based on wrong path

前端 未结 7 1190
予麋鹿
予麋鹿 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:13

    I had a similar situation, and was looking for an answer, when I found this article. I thought about applying this fixed, but felt it was a lot of effort every time you need to branch or merge again.

    I did a little more digging, and I believe I found an easier fix. I found that in Visual Studio 2013 if you open the Properties of the project, and click on the Web option, you will see a Servers section with a button 'Create Virtual Directory' in it.

    If you click this button it will prompt you with a question about it pointing to a different directory then the project is in, would like to fix it. When you click yes it makes the fix for you, and when you debug now it will pull from the correct location.

    0 讨论(0)
提交回复
热议问题