当我从主干分支时,我需要创建一个新的虚拟目录。无论如何?
我的应用程序的主干指向
<IISUrl>http:///localhost/MyApp/</IISUrl>
每当我创建一个新分支时,我最终都必须编辑 MyApp.csproj 将目标 URL 更改为
<IISUrl>http:///localhost/MyAppBranchName/</IISUrl>
有什么方法可以让我不需要这样做吗?原因是分支数量开始增加,并且 IIS 中存在大量虚拟目录。我想我可以使用 ASP.NET Dev 服务器,但由于此解决方案已配置为使用 IIS,因此我更愿意继续使用它。
the Trunk of my app points to
<IISUrl>http:///localhost/MyApp/</IISUrl>
Whenever I create a new branch, I end up having to edit MyApp.csproj to change the target URL to
<IISUrl>http:///localhost/MyAppBranchName/</IISUrl>
Is there any way that I don't need to do this? The reason is the number of branches are starting to add up and there's a lot of virtual directories in IIS. I suppose I could use the ASP.NET Dev server, but as this solution is already configured to use IIS, I'd prefer to keep using that.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我所做的是删除主干的虚拟目录 - 这是一项手动任务,有点痛苦,但它可以完成工作,而且我不必担心合并回主干后会破坏同事的环境。当你打开分支解决方案时,VS会提示你创建IIS VD。
因此,本质上您有一项小型手动任务,并且一次只有一个虚拟目录。
What I do is delete the Virtual Directory for trunk - it is a manual task and a bit of a pain but it gets the job done and I don't have to worry about breaking my colleagues environments after I merge back to trunk. VS will prompt you to create an IIS VD when you open the branch solution.
So essentially you have a small manual task and only one Virtual Directory at a time.