如何使用 TFS 集成平台将团队项目从一个集合复制到另一个集合,TFS2012 到 TFS2012 [英] How to copy a team project from one collection to another with TFS Integration Platform, TFS2012 to TFS2012

查看:31
本文介绍了如何使用 TFS 集成平台将团队项目从一个集合复制到另一个集合,TFS2012 到 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?

推荐答案

好的,我是这样做的.

假设我试图将一个项目 MyProjectSourceCollection 复制到 TargetCollection.

Suppose I am trying to copy a project MyProject from SourceCollection to TargetCollection.

  1. TargetCollection
  2. 中创建一个新项目MyProject
  3. 打开TFS 集成平台
  4. 在配置下选择新建"
  5. 打开文件夹Team Foundation Server"(%ProgramFiles%\Microsoft Team Foundation Server 集成工具\Configurations\Team Foundation Server)
  6. 如果需要,请选择VersionControl.xml"或VersionControlAndWorkItemTracking.xml"(如果您还选择包括工作项跟踪,请确保您启动 TFS 集成的帐户是Team Foundation Service Accounts"TFS 中的用户全球集团)
  7. 工作流类型:自定义/频率:一次性/方向:单向/同步上下文:禁用(您的选择可能不同)
  8. 左侧来源:TFS 11 Migration VC Provider"
  9. SourceCollection
  10. 中选择现有项目MyProject
  11. 正确来源:TFS 11 Migration VC Provider"
  12. TargetCollection
  13. 中选择新项目MyProject
  14. 重要提示:您必须在文件夹列表中明确且单独地包含根目录下的任何文件夹(路径).仅使用 $/或 $/MyProject 是行不通的.例如,如果根目录下有 src/test/ 文件夹,则必须将它们包含为 $/MyProject/src$/MyProject/test.确保您还在 TargetCollectionMyProject 中创建了这些文件夹.
  15. 保存到数据库
  16. 开始迁移
  17. 处理任何异常
  1. Create a new project MyProject in TargetCollection
  2. Open TFS Integration Platform
  3. Under Configuration select "Create New"
  4. Open folder "Team Foundation Server" (%ProgramFiles%\Microsoft Team Foundation Server Integration Tools\Configurations\Team Foundation Server)
  5. 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)
  6. Workflow type: Custom / Frequency: One-time / Direction: Unidirectional / Sync context: disabled (your selection may differ)
  7. Left source: "TFS 11 Migration VC Provider"
  8. Pick the existing project MyProject in SourceCollection
  9. Right source: "TFS 11 Migration VC Provider"
  10. Pick the new project MyProject in TargetCollection
  11. 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/ and test/ under the root, you must include these as $/MyProject/src and $/MyProject/test. Ensure that you also create those folders in MyProject in TargetCollection.
  12. Save to database
  13. Start migration
  14. Handle any exceptions

大功告成.

这篇关于如何使用 TFS 集成平台将团队项目从一个集合复制到另一个集合,TFS2012 到 TFS2012的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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