我已经创建了一个基于敏捷流程的定制流程,并且已经完成了本文中提到的所有规定步骤:TFS 2015不会上传自定义流程模板 https://stackoverflow.com/questions/31999557/tfs-2015-wont-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 文档表明,通过上传自定义流程模板,它不会触及任何现有流程,但此错误似乎与该概念相矛盾。
有任何想法吗?已经在这个问题上苦苦挣扎了一天,一旦清除了这个障碍,其他一切都准备好了。谢谢!
默认模板已随着 TFS 2013 更新 3 或 4 的发布而被锁定。因此,现在您需要将类型 GUID 更改为模板和名称的唯一值。
您将在以下位置找到流程模板版本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>
...
...
...
如果您的模板还没有此标签,您需要添加它。
如果您创建自定义模板,您还必须用您自己的值覆盖 GUID 和名称,这应该会让您锁定 https://stackoverflow.com/a/35319817/736079.
<?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>
...
...
...
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)