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

标签 c# tfs workflow build-process

我正在尝试使用 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/

相关文章:

java - 为 Eclipse 安装 TFS 插件时出现问题

java - AWS Lambda/Aws Batch 工作流程

user-interface - UI中 "workflow oriented"的反义词是什么

c# - 如何将数组从 C++ 库传递到 C#

c# - 如何在 Visual Studio 的 Team Server Foundation 中离线?

c# - 两个相似的重载?或者一个重载调用另一个?

tfs - 团队管理员与项目管理员 TFS

git - 如何使用 Git 存储库进行 Web 开发(和部署)?

c# - 如何有条件地格式化 WPF TextBlock?

c# - 从 sql 渲染 html - webmatrix