为什么缺少TFS构建步骤扩展图标? [英] Why TFS Build Step Extension Icon Is Missing?

查看:87
本文介绍了为什么缺少TFS构建步骤扩展图标?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我在MS教程之后为TFS创建了一个新的扩展。出于某种原因,当我将Icon添加到我的扩展程序时,我可以在安装扩展程序时在"Extension Manager"中看到此图标。页面,

I created a new extension for TFS following MS tutorial. For some reason when I'm adding Icon to my extension I can see this icon when I'm installing the extension and in the "Extension Manager" page,


但是当我从构建步骤菜单中选择我的分机  时,图像缺失


在"vss-extension.json"中文件我添加:

In the "vss-extension.json" file 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

The image file is 32x32


此图片是否应在"& ; task.json"文件也是?

Should this image be reference in the "task.json" file as well?

推荐答案

嗨  Aviram,

Hi  Aviram,

感谢您在此发帖。

不,它不需要这样做。构建任务映像通常命名为icon.png,并且应该与task.json文件(任务的
清单文件)放在相同的路径中。

No, it doesn't need to do so. The build task image usually named like icon.png and it should be put the same path with the task.json file(the manifest file of your task).

在这个站点中,有很多构建任务扩展代码,并且它们都没有在task.json文件中定义任务映像。
https://github.com/Microsoft/vsts-tasks/tree/master/Tasks

In this site, there're many build task extension code for you and none of them define the task image in the task.json file. https://github.com/Microsoft/vsts-tasks/tree/master/Tasks

祝你好运


这篇关于为什么缺少TFS构建步骤扩展图标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆