错误 TF30170:创建团队项目时 "The process template you are using does not support Git."
Error TF30170: "The process template you are using does not support Git." when creating a team project
尝试使用自定义过程模板在 TFS 2015 R2 (on-Prem) 中创建新的团队项目时,我收到此错误弹出窗口:
这是一个惊喜,因为我们的自定义流程模板是基于默认的 Microsoft Scrum 模板。
互联网上几乎没有其他人因我的 google-fu 而遇到此错误。我相信我有一个解决方案,如果是的话,我会相应地回答这个问题。
如果您的 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 添加到文件中应该可以让您完成该过程。
尝试使用自定义过程模板在 TFS 2015 R2 (on-Prem) 中创建新的团队项目时,我收到此错误弹出窗口:
这是一个惊喜,因为我们的自定义流程模板是基于默认的 Microsoft Scrum 模板。
互联网上几乎没有其他人因我的 google-fu 而遇到此错误。我相信我有一个解决方案,如果是的话,我会相应地回答这个问题。
如果您的 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 添加到文件中应该可以让您完成该过程。