gpt4 book ai didi

c# - TFS 2010 : Is it possible to use a list of key value pairs in the ProcessParameterMetadataCollection?

转载 作者:太空宇宙 更新时间:2023-11-03 14:06:04 26 4
gpt4 key购买 nike

我正在尝试使用 ProcessParameterMetadataCollection 配置我的 TFS 工作流。我需要一个键值对列表。像这样的东西:

enter image description here

然后我想遍历集合并调用单独的工作流。

最佳答案

这是可能的,但有点麻烦。

简而言之,您需要:

  1. 创建一个能够编辑字典的 UITypeEditor;
  2. 部署您的 UITypeEditor(将其程序集添加到源代码管理并配置构建 Controller 以下载该程序集);
  3. 在您的构建过程模板中创建一个 Dictionary 类型的参数;
  4. 修改 Metadata 参数以添加代表您在步骤 #3 中创建的参数的新条目,并使用您在步骤 #1 中创建的 UITypeEditor 配置 Editor 字段。
  5. 修改您的工作流程以根据需要迭代您的字典,例如使用a 对于事件。

最困难的事情是创建您的词典编辑器。幸运的是,似乎有一个很好的起点:http://gendictedit.codeplex.com/

关于c# - TFS 2010 : Is it possible to use a list of key value pairs in the ProcessParameterMetadataCollection?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9275150/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com