TFS 2015:版本错误上载自定义过程模板 [英] TFS 2015: Version-Error uploading custom process template

查看:65
本文介绍了TFS 2015:版本错误上载自定义过程模板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经基于敏捷流程创建了自定义流程,并且已经完成了本文中提到的所有规定步骤:

I've created a customized process based on the Agile process and have already done all prescribed steps noted in this post: TFS 2015 won't upload custom process template however when I change the version type to something different I receive this error during the upload process:

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文档指示,通过上载自定义的流程模板,它不会涉及任何现有流程,但是此错误似乎与该概念相矛盾.

Is there a list of 'acceptable' version types? The msdn documentation for TFS 2015 indicates that by uploading a customized process template it will not touch any of the existing processes, but this error seems to contradict that notion.

有什么想法吗?经过一天的努力,一旦清除了这一障碍,一切准备就绪.谢谢!

Any ideas? Been chomping away at this one for a day and everything else is ready to go once this one roadblock is cleared. Thanks!

推荐答案

默认模板已随TFS 2013更新3或4的发布而锁定.因此,现在您需要将GUID类型更改为唯一的类型模板和名称.

The default templates have been locked with the release of TFS 2013 update 3 or 4. So now you'll need to change the type GUID to be unique for your template and the name.

您将在Process Template文件夹根目录的 ProcessTemplate.xml 中找到流程模板版本:

You'll find the process template version in the ProcessTemplate.xml in the root of your Process Template folder:

<?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>
    ...
  ... 
...

如果您的模板尚没有此标记,则需要添加它.

If your template doesn't have this tag already, you'll need to add it.

如果您创建自定义模板,则还必须使用自己的值覆盖GUID和名称,这应该使您处于锁定状态.

If you create a custom template you must also 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>
    ...
  ... 
...

这篇关于TFS 2015:版本错误上载自定义过程模板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆