如何使用指向不同分支的一种解决方案在 TFS 中工作
我正在使用TFS。我为解决方案中的文件夹/项目之一创建了一个分支。现在我有两个具有相同代码的分支(文件夹)。但我的解决方案仅指向一个(父文件夹分支。但从现在开始,我想使用新创建的子文件夹分支。
我找到了两种方法:
重新设计我的解决方案以指向新创建的子文件夹分支。我的解决方案包括近 200 个项目,这种方式需要大量工作。
- 重新 不改变解决方案,但改变工作空间通过计时父文件夹分支并将新创建的映射到旧位置,这种方式也非常复杂。
方案的另一种方法。
I am using TFS. I created a branch for one of folder/project in my solution. Now I have two branches (folders) with the same code. But my solution pointed only one (parent folder-branch. But from now I want to work with newly create son folder-branch.
I found two ways:
Redesign my solution to point newly created son folder-branch. My solution includes near 200 projects and this way will take a lot of job.
Don't change solution but change workspace by clocking parent folder-branch and mapping newly created to old place. This way also very complicated.
May be somebody will give me advise to another way. Easy way of using the same solution for several branches.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
通常,您希望在解决方案级别而不是项目级别进行分支和合并。
Typically you will want to branch and merge at the solution level, not the project level.
我一直遵循 ALM Rangers 关于分支的指导,使用他们的“基本”分支结构:
我的正常工作区映射为“$/TP/Dev/Dev”到我本地的“C:\TP”文件夹。这就是我日常工作的地方,解决方案文件就在那里。当我向前合并到 Main,然后再合并到 Release 时,解决方案自然就随之而来。
该解决方案不涉及任何分支。它包含与磁盘位置相关的引用,因此它可以在任何分支或任何计算机上运行。
I have been following the ALM Rangers' guidance on branching, using their "basic" branching structure:
My normal workspace maps from "$/TP/Dev/Dev" to my local "C:\TP" folder. That's where I do my day to day work, and the solution files are under there. When I merge forward to Main, and then to Release, the solution naturally comes with it.
The solution doesn't refer to any branch. It contains references relative to the disk location, so it all works in any branch or any machine.