VS 2012基于错误的路径启动应用程序 [英] VS 2012 launching app based on wrong path

查看:148
本文介绍了VS 2012基于错误的路径启动应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个应用程序,它在c:\ Dev \ MyApp \主页上受源代码管理(TFS 2012)。

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

因为我正在开发一个新的功能我决定在c:\ Dev \ MyApp \ BranchNewFeature上打开一个分支。

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

我开发了,当我决定是时候测试它就像我根本没有做过任何改变。我点击了F5,我看到了该应用程序的基线版本...看着它我注意到一个非常奇怪的事实:当我检查IIS Express时,应用程序的启动路径是旧的(c:\Dev \ MyApp\Main)。

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).

任何人都可以帮助我让IIS Express指向新路径吗? (C:\ Dev \ MyApp \ BranchNewFeature)

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

推荐答案

我遇到了同样的问题。为了解决这个问题,我使用了 cheesemacfly 的建议来更新 C:\ Users \ %USERNAME%\Documents\IISExpress\config\applicationhost.config 指向新目录。

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.

明显的缺点是如果您计划经常在新分支之间切换,则此解决方案是您需要重复执行此操作。看起来像VS2012中的一个错误...

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...

这篇关于VS 2012基于错误的路径启动应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆