【问题标题】:TFS 2015: Version-Error uploading custom process templateTFS 2015:版本错误上传自定义流程模板
【发布时间】:2016-08-14 22:48:13
【问题描述】:

我已经创建了一个基于敏捷流程的定制流程,并且已经完成了这篇文章中提到的所有规定步骤: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 文档表明,通过上传自定义流程模板,它不会触及任何现有流程,但此错误似乎与该概念相矛盾。

有什么想法吗?已经在这一天大吃一惊,一旦清除了这一障碍,其他一切都准备就绪。谢谢!

【问题讨论】:

  • 您为流程模板指定了什么版本?在ProcessTemplate.xml 中,有一个version 元素应该如下所示:<version type="ADCC42AB-9882-485E-A3ED-7678F01F66BC" major="14" minor="1" />

标签: tfs guid agile tfs-2015 tfs-process-template


【解决方案1】:

随着 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>
    ...
  ... 
...

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-11-18
    • 2016-10-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-10-14
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多