2016-04-21 111 views
2

我已经创建了基于敏捷过程的自定义流程,并且已经完成了本文中提到的所有规定步骤:TFS 2015 won't upload custom process template 但是,当我将版本类型更改为不同的I在上传过程中收到此错误:TFS 2015:版本错误上传自定义流程模板

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

您为流程模板指定了哪个版本?在'ProcessTemplate.xml'中,有一个'version'元素应该看起来像这样:'

回答

2

默认模板已被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> 
    ... 
    ... 
... 

如果您的模板没有这个标签已经,你需要添加它。

如果您创建自定义模板,则还必须使用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> 
    ... 
    ... 
...