我已经基于敏捷流程创建了一个自定义流程,并且已经完成了本文中提到的所有规定步骤:TFS 2015 won't upload custom process template 但是当我将版本类型更改为不同版本时,我在上传过程中收到此错误:
Time: 2016-04-21T08:37:48
Module: Template Importer
Exception Message: The remote server returned an error: (400) Bad Request. (type WebException)Status: ProtocolError
Response Status Code: BadRequest
Response Status Message: VS402452: The process template did not specify a version, or specified an invalid version
Exception Stack Trace: at System.Net.HttpWebRequest.GetResponse()
at Microsoft.TeamFoundation.Framework.Client.TeamFoundationProcessTemplateService.AddUpdateTemplate(String name, String description, String metadata, String state, String zipFileName)
at Microsoft.VisualStudio.TeamFoundation.PCW.TemplateManagementService.UpLoadTemplateFile(TemplateData data, FileInfo templateZipFile, ELeadLogger log)
at Microsoft.VisualStudio.TeamFoundation.PCW.TemplateManagementService.Import(String folderPath, ILogHandler logHandler)
是否有可接受的列表?版型? TFS 2015的msdn文档表明,通过上传自定义流程模板,它不会触及任何现有流程,但这个错误似乎与这个概念相矛盾。
有什么想法吗?在这一天被扼杀了一天,其他一切都准备好了,一旦这个路障被清除。谢谢!
答案 0 :(得分:3)
默认模板已被TFS 2013更新3或4版本锁定。因此,现在您需要将类型GUID更改为您的模板和名称的唯一性。
您将在Process Template文件夹的根目录中的ProcessTemplate.xml
中找到流程模板版本:
<?xml version="1.0" encoding="utf-8"?>
<ProcessTemplate>
<metadata>
<name>Scrum 2015</name>
<description>This template is for teams who follow the Scrum framework.</description>
<version type="6B724908-EF14-45CF-84F8-768B5384DA46" major="3" minor="33" />
<plugins>
...
...
...
如果您的模板已经没有此标记,则您需要添加该标记。
如果您要创建自定义模板,则还必须override the GUID and the name with your own values and that should get you onlocked。
<?xml version="1.0" encoding="utf-8"?>
<ProcessTemplate>
<metadata>
<!-- new name -->
<name>Custom Scrum 2015</name>
<description>This template is for teams who follow the Scrum framework.</description>
<!-- add/override version and set a new guid -->
<version type="276d0f20-c2f9-4077-8199-e81a8cc47012" major="1" minor="0" />
<plugins>
...
...
...