如何使用 TFS 集成平台将团队项目从一个集合复制到另一个集合,TFS2012 到 TFS2012 [英] How to copy a team project from one collection to another with TFS Integration Platform, TFS2012 to TFS2012
问题描述
我已经从 CodePlex 下载了最新的 TFS 集成平台,并尝试在左侧 CollectionA
中的现有团队项目 MyProject
和一个空的右侧 CollectionB
中的团队项目 MyProject
使用提供的源代码控制和工作项"模板.每当我这样做时,它都会引发一些关于构建模板的异常(我解决了它们),然后它会显示这个带有条形图的漂亮的变更集图表,我觉得它完成了一些事情.每次尝试此操作时,我都会查看 CollectionB
中源代码管理中的 MyProject
,希望看到 CollectionA
中项目的完整版本.每一次,我都很失望 - 它是空的,看起来什么也没发生.
I've downloaded the latest TFS Integration Platform from CodePlex and attempted to migrate "one way" between an existing team project MyProject
in CollectionA
on the left and an empty team project MyProject
in CollectionB
on the right using the provided "source control and work item" template. Whenever I do, it raises a few exceptions about the build templates (I resolve them), and then it displays this wonderful-looking diagram of changesets with bar graphs, and I feel like it's done something. Every time I try this, I look at MyProject
in source control in CollectionB
expecting to see a fully-populated version of the project from CollectionA
. Every time, I am disappointed - it's empty and it looks like nothing happened.
顺便说一下,我尝试在同一 TFS 2012 服务器上的集合之间移动项目.
By the way, I am try to move the project from between collections on the same TFS 2012 server.
我误解了集成平台的意义吗?还是它实际上不适用于 TFS 2012?
Am I misunderstanding the point of Integration Platform? Or does it just not actually work with TFS 2012?
推荐答案
好的,我是这样做的.
假设我试图将一个项目 MyProject
从 SourceCollection
复制到 TargetCollection
.
Suppose I am trying to copy a project MyProject
from SourceCollection
to TargetCollection
.
- 在
TargetCollection
中创建一个新项目 - 打开TFS 集成平台
- 在配置下选择新建"
- 打开文件夹Team Foundation Server"(%ProgramFiles%\Microsoft Team Foundation Server 集成工具\Configurations\Team Foundation Server)
- 如果需要,请选择VersionControl.xml"或VersionControlAndWorkItemTracking.xml"(如果您还选择包括工作项跟踪,请确保您启动 TFS 集成的帐户是Team Foundation Service Accounts"TFS 中的用户全球集团)
- 工作流类型:自定义/频率:一次性/方向:单向/同步上下文:禁用(您的选择可能不同)
- 左侧来源:TFS 11 Migration VC Provider"
- 在
SourceCollection
中选择现有项目 - 正确来源:TFS 11 Migration VC Provider"
- 在
TargetCollection
中选择新项目 - 重要提示:您必须在文件夹列表中明确且单独地包含根目录下的任何文件夹(路径).仅使用 $/或 $/MyProject 是行不通的.例如,如果根目录下有
src/
和test/
文件夹,则必须将它们包含为$/MyProject/src
和$/MyProject/test
.确保您还在TargetCollection
的MyProject
中创建了这些文件夹. - 保存到数据库
- 开始迁移
- 处理任何异常
MyProject
MyProject
MyProject
- Create a new project
MyProject
inTargetCollection
- Open TFS Integration Platform
- Under Configuration select "Create New"
- Open folder "Team Foundation Server" (%ProgramFiles%\Microsoft Team Foundation Server Integration Tools\Configurations\Team Foundation Server)
- Select "VersionControl.xml" or "VersionControlAndWorkItemTracking.xml" if you need it (if you choose to include WorkItem tracking as well ensure the account you started TFS Integration is a user which is in the "Team Foundation Service Accounts" TFS Global Group)
- Workflow type: Custom / Frequency: One-time / Direction: Unidirectional / Sync context: disabled (your selection may differ)
- Left source: "TFS 11 Migration VC Provider"
- Pick the existing project
MyProject
inSourceCollection
- Right source: "TFS 11 Migration VC Provider"
- Pick the new project
MyProject
inTargetCollection
- Important: you must include any folders (paths) under the root explicitly and individually in the folders list. Just using $/ or $/MyProject will not work. For example, if you have folders
src/
andtest/
under the root, you must include these as$/MyProject/src
and$/MyProject/test
. Ensure that you also create those folders inMyProject
inTargetCollection
. - Save to database
- Start migration
- Handle any exceptions
大功告成.
这篇关于如何使用 TFS 集成平台将团队项目从一个集合复制到另一个集合,TFS2012 到 TFS2012的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!