无法在 Azure DevOps Server 2020 中上传自定义流程模板

can't upload custom process template in Azure DevOps Server 2020

我正在尝试在 Azure DevOps Server 2020 中创建自定义流程模板。我正在使用 on-premises XML 流程模型。当我上传我的自定义流程模板时,我不断收到“您无法更新系统流程”错误。

这些是我采取的步骤:

  1. 通过转至 Collection 设置 -> 流程,点击敏捷并选择 'Export' 下载敏捷系统流程。
  2. 我解压了下载的文件夹并在Visual Studio中打开了它。
  3. 我更改了字段名称并添加了错误的新状态。
  4. 我在 ProcessTemplate.xml 中更改了名称和版本,如下所示:
<metadata>
<name>CustomProcess</name>
<description>This is a custom process template based on the Agile process</description>
<version type="ADCC42AB-9882-485E-A3ED-7678F01F66BC" major="1" minor="0" />
  1. 我将文件夹重命名为 CustomProcess 并将其压缩。
  2. 在 Collection 设置 -> 进程中,我点击了 'Upload process template' 并尝试上传我的 CustomProcess 压缩文件夹。我收到错误“您无法更新系统进程”。

我确保按照之前的 Whosebug post 中的建议更新了名称和版本,但我仍然收到错误消息。我还需要在 XML 文件中修改其他内容吗?

检查这个答案:https://developercommunity.visualstudio.com/content/problem/310354/cant-upload-a-custom-process-template-to-tfs-2018.html

You have to change the name and the version of the template

我查看了一些更相关的 Whosebug 帖子,发现 很有帮助。问题是我需要为该版本生成一个新的 GUID。我进入 Visual Studio,转到工具 -> 创建 GUID。为 GUID 格式选择数字 6 选项。将 GUID 粘贴到版本类型中:<version type="[paste GUID here]" major="1" minor="0" />

希望这对遇到类似问题的其他人有所帮助。官方文档没有提到这些,非常令人失望。