自定义Azure DevOps扩展中心和中心组中的清单图标 [英] Manifest icons in custom Azure DevOps extension hubs and hub groups

查看:48
本文介绍了自定义Azure DevOps扩展中心和中心组中的清单图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发Azure DevOps扩展.试用DevOps

解决方案

按照

I am developing an Azure DevOps extension. Experimenting with the DevOps UI extension sample raises a question for me. I enabled the Preview features in Azure DevOps having a more fancy UI. Azure default hubs and hub groups like Tests, Repos and so on do have a nice coloured icons in the menu bar. Whereas my custom Sample UI do not. They are just grey. And it looks like I cannot manifest icons for my custom hubs and hub groups. Anybody here who knows more about this issue?

解决方案

Follow this guide will most likley solve your problem

Make sure your vss.extension.json file follow this pattern:

{
   "id": "my-extension",
   "publisherId": "my-publisher",
   ...
   "contributions": [
     {
        "id": "example-hub",
        "type": "ms.vss-web.hub",
        "targets": [
            "ms.vss-code-web.code-hub-group"
        ],
        "properties": {
            "name": "My Hub",
            "iconAsset": "my-publisher.my-extension/images/fabrikam-logo.png",
            "_sharedData": {
                "assets": [
                    "my-publisher.my-extension/images/fabrikam-logo.png"
                ]
            }
        }
   }
 ],
 "files": [
    {
       "path": "images/fabrikam-logo.png",
       "addressable": true
    }
  ]
}

这篇关于自定义Azure DevOps扩展中心和中心组中的清单图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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