简体   繁体   English

如何使用TFS Integration Platform,TFS2012到TFS2012将团队项目从一个集合复制到另一个集合

[英]How to copy a team project from one collection to another with TFS Integration Platform, TFS2012 to TFS2012

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. 我从CodePlex下载了最新的TFS集成平台,尝试使用提供的“源代码控制和工作项”在左侧的CollectionA的现有团队项目MyProject和右侧的CollectionB的空团队项目MyProject之间进行“单向”迁移。 “模板。 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 . 每次我尝试这个时,我都会在CollectionB源代码控制中查看MyProject ,期望从CollectionA看到一个完全填充的项目版本。 Every time, I am disappointed - it's empty and it looks like nothing happened. 每次,我都很失望 - 它是空的,看起来什么也没发生。

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? 或者它实际上不适用于TFS 2012?

Okay, here's how I did it. 好的,我就是这样做的。

Suppose I am trying to copy a project MyProject from SourceCollection to TargetCollection . 假设我正在尝试将项目MyProjectSourceCollection复制到TargetCollection

  1. Create a new project MyProject in TargetCollection TargetCollection创建一个新项目MyProject
  2. Open TFS Integration Platform 打开TFS集成平台
  3. Under Configuration select "Create New" 在配置下选择“新建”
  4. Open folder "Team Foundation Server" (%ProgramFiles%\\Microsoft Team Foundation Server Integration Tools\\Configurations\\Team Foundation Server) 打开文件夹“Team Foundation Server”(%ProgramFiles%\\ Microsoft Team Foundation Server集成工具\\配置\\ 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) 如果需要,请选择“VersionControl.xml”或“VersionControlAndWorkItemTracking.xml”(如果您选择包括WorkItem跟踪,请确保您启动的帐户TFS Integration是“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" 左侧来源:“TFS 11迁移VC提供商”
  8. Pick the existing project MyProject in SourceCollection SourceCollection选择现有项目MyProject
  9. Right source: "TFS 11 Migration VC Provider" 正确的来源:“TFS 11迁移VC提供商”
  10. Pick the new project MyProject in TargetCollection TargetCollection选择新项目MyProject
  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 . 只使用$ /或$ / MyProject将无法正常工作 For example, if you have folders src/ and test/ under the root, you must include these as $/MyProject/src and $/MyProject/test . 例如,如果在根目录下有src/test/文件夹,则必须将它们包含在$/MyProject/src$/MyProject/test Ensure that you also create those folders in MyProject in TargetCollection . 确保您还在TargetCollection中的MyProject中创建这些文件夹。
  12. Save to database 保存到数据库
  13. Start migration 开始迁移
  14. Handle any exceptions 处理任何例外情况

You are done. 你完成了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM