图标在Azure DevOps管道的发布任务目录上不可见。 vss-extension.json如下所示,

时间:2019-12-05 07:13:08

标签: azure azure-devops azure-pipelines-release-pipeline

{
    "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"

            }

        }
    ]

}

1 个答案:

答案 0 :(得分:0)

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