Manifest icons in custom Azure DevOps extension hubs and hub groups

孤者浪人 提交于 2021-02-19 06:33:51

问题


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?


回答1:


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
    }
  ]
}


来源:https://stackoverflow.com/questions/53582701/manifest-icons-in-custom-azure-devops-extension-hubs-and-hub-groups

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!