本文是小编为大家收集整理的关于如何在团队项目源控制中创建新的根文件夹?的处理/解决方法,可以参考本文帮助大家快速定位并解决问题,中文翻译不准确的可切换到English标签页查看源文。
问题描述
我想像此示例一样重新创建文件夹层次结构(来自 tfs分支指南 MAIN 2010 V1 ):
问题是,我无法理解如何创建其他根级文件夹,例如上图中的开发 和版本将新的子分支放入.<<<<<<<<
New Folder命令选项仅在根级分支下方的级别上可用.
如何在团队项目源控制中创建新的根文件夹在主要分支级别?
推荐答案
确保在团队项目级别(图片中的"标准布兰奇普兰")的工作区映射.我只是尝试了一下,发现如果选择了错误的工作区,就不会出现"新文件夹",但是一旦我选择了一个映射要创建新文件夹的文件夹的工作区,"新文件夹"就启用了.
其他推荐答案
这是我所做的.
- 连接到Team Explorer中所需的收藏.
- 单击"连接"行末尾的向下箭头.
- 在下拉菜单中提供了"项目和我的团队".
- 选择"新团队项目".
现在您有一个新的"目录".
其他推荐答案
您无法将TF中的文件夹添加到如上所述的未盖上.但是,一个很好的方法是以下示例.
方案:
- 您想拥有一个新文件夹来包含许多新项目
- 右键单击您的解决方案,然后添加解决方案以源控制
- 此时,您可以在root上创建一个用" WebServices"的名称创建一个文件夹
- 然后,您继续添加项目/解决方案 继续进行弹出窗口
对我来说,这很好,尽管我也希望自由地为自己和其他开发人员提前设置文件夹结构,而无需提交/签到代码等.
问题描述
I'd like to recreate a folder hierarchy like in this example (from TFS Branching Guide Main 2010 v1):
The problem is I cannot understand how to create additional root-level folders, like those Development and Release in the picture above, to put new child branches into.
The New Folder command option becomes available only at levels beneath root-level branches.
How to create new root folders in a Team Project source control at the Main branch level?
推荐答案
Make sure that your workspace maps at the Team Project level ("StandardBranchPlan" in the picture). I just tried this, and found that "New Folder" does not appear if I have the wrong workspace selected, but once I select a workspace that maps the folder under which I want to create a new folder, "New Folder" became enabled.
其他推荐答案
Here is what I did.
- Connect to the desired collection in Team Explorer.
- Click the down arrow at the end of the "Connect" row.
- From the drop-down menu provided select "Projects and My Teams".
- Select "New Team Project".
And now you have a new "Directory" under the collection root.
其他推荐答案
You cannot add a folder to root in TFS to an unmapped as mentioned. However one good way to do this is with the following example.
Scenario:
- You want to have a NEW Folder to contain many NEW Projects
- Right click on your solution and Add solution to source control
- At this point you can create a folder on root with say name of "WebServices"
- Then you continue through with the popup in adding in your project/solution
For me this works fine, although I too would prefer the freedom to setup a folder structure ahead of time for myself and other developers without having to commit/check-in code etc.