【问题标题】:Error TF30170: "The process template you are using does not support Git." when creating a team project错误 TF30170:“您使用的流程模板不支持 Git。”创建团队项目时
【发布时间】:2016-07-27 02:44:54
【问题描述】:

尝试使用自定义流程模板在 TFS 2015 R2(on-Prem)中创建新团队项目时,我收到此错误弹出窗口:

这是一个惊喜,因为我们的自定义流程模板基于默认的 Microsoft Scrum 模板。

几乎没有其他人通过我的 google-fu 在互联网上遇到此错误。我相信我有一个解决方案,如果有,我会相应地回答这个问题。

【问题讨论】:

    标签: git tfs tfs-2015 tfs-process-template team-project


    【解决方案1】:

    如果您的 Scrum 模板来自于在 Team Foundation Server 中引入 Git 之前,您可能需要编辑您的 VersionControl.xml 以在其中包含 Git 引用:

    <?xml version="1.0" encoding="utf-8"?>
    <tasks>
      <task id="VersionControlTask" name="Create Version Control area" plugin="Microsoft.ProjectCreationWizard.VersionControl" completionMessage="Version control Task completed.">
        <taskXml>
    
          ...
    
          <git>
            <permission allow="GenericRead, GenericContribute, ForcePush, Administer, CreateBranch, CreateTag, ManageNote" identity="[$$PROJECTNAME$$]\$$PROJECTADMINGROUP$$" />
            <permission allow="GenericRead, GenericContribute, CreateBranch, CreateTag, ManageNote" identity="[$$PROJECTNAME$$]\Contributors" />
            <permission allow="GenericRead, GenericContribute, CreateBranch, CreateTag, ManageNote" identity="[$$PROJECTNAME$$]\Build Administrators" />
            <permission allow="GenericRead" identity="[$$PROJECTNAME$$]\Readers" />
          </git>
        </taskXml>
      </task>
    </tasks>
    

    将该 blob 添加到文件中应该可以让您完成该过程。

    【讨论】:

    • 这是完全正确的答案——最初的自定义模板是在添加 Git 功能之前在 TFS 中创建的。这个问题以前没有出现过,因为实际源代码控制(使用 git)的流程模板与一个跨团队团队项目工作跟踪分开使用。
    猜你喜欢
    • 2012-12-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-10-25
    • 2010-11-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多