我最近将本地 Team Foundation Server 从 Tfs 2015 升级到 Tfs2015.Update3 (14.102.25423.0) 升级已完成,所有其他功能似乎都正常工作。大约一天前,我尝试创建一个新的 Tfs 项目 (TFVC),结果出现错误。
当我查看应用层日志文件时,我看到以下内容:
[10:31:30.153] Executing step: Create the Team Project.
[10:31:30.167] Executing step: 'Create the Team Project.' WorkItemTracking.CreateTeamProject (4 of 13)
[10:31:30.183] Getting process template.
[10:31:31.463] Refreshing server caches.
[10:31:31.463] Importing work item link types.
[10:31:32.180] Importing work item types
[10:31:33.727] Importing work item types
[10:31:34.413] [Error] TF400930: Field 'System.ExternalLinkCount' is defined multiple times with different field definitions. Correct the field definition and try again.
[10:31:34.507] Microsoft.TeamFoundation.WorkItemTracking.Server.LegacyValidationException: TF400930: Field 'System.ExternalLinkCount' is defined multiple times with different field definitions. Correct the field definition and try again.
[10:31:34.507] at Microsoft.TeamFoundation.WorkItemTracking.Server.ProvisioningService.InternalImportWorkItemTypesOrGlobalWorkflows(IVssRequestContext requestContext, Int32 projectId, String methodologyName, IEnumerable`1 typeElements, ProvisioningActionType actionType, InternalSchemaType schemaType, Boolean overwrite, ProvisioningImportEventsCallback importEventCallback)
不幸的是,我们使用了自定义模板(基于 Scrum 模板),而正是这个模板导致了错误。在基于标准 Scrum 或敏捷模板创建新的 Tfs 项目 (TFVC) 时,它可以正常工作。
我下载了有问题的自定义 scrum 模板,并在“<strong>System.ExternalLinkCount”上进行了 grep 搜索。当我查看这些字段时,它们似乎确实属于同一类型。任何想法或建议为什么它会以这种方式出现?