我正在尝试在 Visual Studio 2017 中新安装的 Azure DevOps Server 2019 上为我的集合创建一个新的团队项目。我能够使用 Web 界面成功创建项目,但是从 VS 尝试时失败。以下是日志中的异常条目:
---begin Exception entry---
Time: 2019-08-05T10:53:19
Module: Work Item Tracking
Exception Message: VS1640129: The collection you are targeting uses inheritance process model. This operation is not allowed on an inheritance process model based collection. Please refer to https://go.microsoft.com/fwlink/?linkid=849010 or contact your system administrator for help. (type VssServiceException)
Exception Stack Trace: at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<HandleResponseAsync>d__52.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__50.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__47`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__28`1.MoveNext()
--- end Exception entry ---
2019-08-05T10:53:19 | Module: Work Item Tracking | Thread: 28 | Uploaded WorkItemType definition from C:\Users\natha589\AppData\Local\Temp\TPW_tmpADC0.tmp\WorkItem Tracking\TypeDefinitions\Bug.xml.
---begin Exception entry---
Time: 2019-08-05T10:53:19
Module: Engine
Event Description: TF30162: Task "WITs" from Group "WorkItemTracking" failed
Exception Type: Microsoft.TeamFoundation.Client.PcwException
Exception Message: Work item type validation failed. The operation cannot be completed.
Stack Trace:
at Microsoft.VisualStudio.TeamFoundation.WorkItemTracking.WitPcwPlugin.PcwPluginComponentCreator.Execute(ProjectCreationContext ctxt, XmlNode taskXml)
at Microsoft.VisualStudio.TeamFoundation.PCW.ProjectCreationEngine.TaskExecutor.PerformTask(IProjectComponentCreator componentCreator, ProjectCreationContext context, XmlNode taskXml)
at Microsoft.VisualStudio.TeamFoundation.PCW.ProjectCreationEngine.RunTask(Object taskObj)
-- Inner Exception --
Exception Message: Work item type validation failed. The operation cannot be completed. (type WitPcwFatalException)
Exception Stack Trace: at Microsoft.VisualStudio.TeamFoundation.WorkItemTracking.WitPcwPlugin.PcwPluginComponentCreator.WitPcwTask.WorkItemTypesTask.UploadTypeDefinition(String file, Boolean execute)
at Microsoft.VisualStudio.TeamFoundation.WorkItemTracking.WitPcwPlugin.PcwPluginComponentCreator.WitPcwTask.WorkItemTypesTask.Execute()
at Microsoft.VisualStudio.TeamFoundation.WorkItemTracking.WitPcwPlugin.PcwPluginComponentCreator.Parse(ContextWrapper wrapper, XmlNode taskXml, Boolean fExecute)
at Microsoft.VisualStudio.TeamFoundation.WorkItemTracking.WitPcwPlugin.PcwPluginComponentCreator.Execute(ProjectCreationContext ctxt, XmlNode taskXml)
--- end Exception entry ---
我的团队习惯于在 Visual Studio 中创建项目,因此不必依赖访问 Web UI 会很好。
编辑:我选择敏捷流程模板和 TFVC 进行版本控制。