简体   繁体   中英

Icon is not visible on release task catalog in Azure DevOps pipeline. vss-extension.json as below,

{
    "manifestVersion": 1,
    "id": "build-release-task",
    "name": "",
    "version": "1.1.9",
    "publisher": " ",
    "targets": [
        {
            "id": "Microsoft.VisualStudio.Services"
        }
    ],    
    "description": "",
    "categories": [
        "Azure Pipelines"
    ],
    "icons": {
        "default": "images/extension-icon.png"      
    },
    "files": [
        {
            "path": "buildAndReleaseTask"
        },
        {
            "path": "images",
            "addressable": true

        }
    ],
    "contributions": [
        {
            "id": "custom-build-release-task",
            "type": "ms.vss-distributed-task.task",
            "targets": [
                "ms.vss-distributed-task.tasks"
            ],
            "properties": {
                "name": "buildAndReleaseTask",
                "icon": "images/extension-icon.png"

            }

        }
    ]

}

您还应该将图标文件放在任务文件夹中( .ts / .ps1文件所在的位置)。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM