azure-devops - 我在哪里可以找到新的 azure devops 扩展的所有可用贡献目标?

标签 azure-devops azure-devops-extensions

蔚蓝新扩展开发documentation指向 github 中的示例项目您可以在其中看到针对 azure DevOps 门户不同区域的不同扩展示例。但是,我无法找到有关所有可用贡献目标的任何文档。我在哪里可以找到这些信息。

例如,repo 中的一个示例展示了如何向存储库选择器添加新菜单选项。这是贡献片段的样子:

{
    "contributions": [
        {
            "id": "sample-repository-picker-action",
            "type": "ms.vss-web.menu-item",
            "targets": [ "ms.vss-code-web.command-bar-repository-picker-actions" ],
            "properties": {
                "text": "Sample repository picker action",
                "uri": "dist/RepositoryActions/RepositoryActions.html",
                "iconName" : "Add",
                "registeredObjectId": "sample-repository-action"
            }
        }
    ]
}

如您所见,他们的目标是 ms.vss-code-web.command-bar-repository-picker-actions我在哪里可以找到所有不同目标的文档?

我尝试过的是使用 chrome Devtools 检查 azure DevOps 门户,希望将目标字符串视为任何元素中的 html 属性。那只是一个疯狂的猜测。这似乎是要为扩展创建记录的重要信息,那些在哪里?

最佳答案

您可以安装 Contributions Guide来自微软的扩展。

This extension is designed to help extension developers discover the various components of Visual Studio Team Services that can be targeted by contributions from third party extensions, as well as the context data that is available at each target.



此外,您还可以找到一长串herehere .

关于azure-devops - 我在哪里可以找到新的 azure devops 扩展的所有可用贡献目标?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58716740/

相关文章:

azure-devops - 在 Azure Devops 管道期间忽略/取消警告

azure - 向市场添加了新的 VSTS 扩展,能够安装该扩展但未显示在 azure pipeline 任务中

azure-devops - 如何在 azure devops 中为工作项状态添加新的自定义类别?

azure-devops - 如何使用 Rest API 在测试用例工作项中添加测试步骤

azure-devops - 如何使用 Azure DevOps NuGet 为其他阶段重新运行现有的 Azure DevOps 管道?

azure - 如何通过API在Azure Devops中添加团队成员? Groups API 也不起作用

azure - 在 Azure DevOps 项目中 Repos 未显示

Azure tfs-cli 不包括所有文件 (.vsix)

azure - Azure DevOps 管道可以按特定顺序运行吗?

azure-devops - 是否可以使 VSO (Visual Studio Online) 存储库公开可见?