Why is the TFS Build Step Extension badge missing?

I created a new extension for TFS after the MS tutorial. For some reason, when I add an Icon to my extension, I see this icon when I install the extension on the "Extension Manager" page,

But when I select the extension from the build step menu, the image is missing .

In the file "vss-extension.json" I added:

"icons": {
    "default": "images/icon.png"
}, 
"files": [
    {
        "path": "images",
        "addressable": true          
    },
    {
        "path": "dist",
        "addressable": true,
        "packagePath": "scripts"
    },
    {
        "path": "infoTab.html",
        "addressable": true
    },                   
    {
        "path": "node_modules/vss-web-extension-sdk/lib",
        "addressable": true,
        "packagePath": "lib"
    },    
    {
        "path": "buildtask"
    }       
],

32x32 Image File

Should this image be a link in the "task.json" file?

+6
source share
2 answers

, , task.json, icon.png 32x32 , icon.svg . , , . task.json, .

, Azure Pipelines Snyk. , , :

"contributions": [
{
  "id": "buildtask",
  "type": "ms.vss-distributed-task.task",
  "targets": [
    "ms.vss-distributed-task.tasks"
  ],
  "properties": {
    "name": "buildtask"
  }
}
+7

Microsoft Visual Studio Team Foundation Server 15.105.25910.0. , .

  • icon.png.
  • , task.json.
  • 32 x 32; .

task.json . .

+14

Source: https://habr.com/ru/post/1668852/


All Articles