gpt4 book ai didi

azure - 自定义 Azure DevOps 扩展中心和中心组中的 list 图标

转载 作者:行者123 更新时间:2023-12-02 14:54:37 24 4
gpt4 key购买 nike

我正在开发 Azure DevOps 扩展。尝试 DevOps UI extension sample向我提出了一个问题。我在 Azure DevOps 中启用了预览功能,拥有更精美的 UI。 Azure 默认中心和中心组(如测试、存储库等)在菜单栏中确实有一个漂亮的彩色图标。而我的自定义示例 UI 则不然。它们只是灰色的。看起来我无法显示自定义中心和中心组的图标。这里有人对这个问题了解更多吗?

The preview features in Azure DevOps and my Sample UI

最佳答案

关注this guide最有可能解决您的问题

确保您的 vss.extension.json 文件遵循以下模式:

{
"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 - 自定义 Azure DevOps 扩展中心和中心组中的 list 图标,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53582701/

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