【问题标题】:Cannot publish vss-extension. "public": true cause the an error无法发布 vss 扩展。 "public": true 导致错误
【发布时间】:2018-01-03 23:44:28
【问题描述】:

我完成了我的 VSTS 扩展并准备发布它。我按照这里的步骤操作:https://docs.microsoft.com/en-us/vsts/extend/publish/command-line。

我收到以下错误:

i:\Documents\GIT\wdc-extension>tfx extension publish --share-with wdc-extension
TFS Cross Platform Command Line Interface v0.4.11
Copyright Microsoft Corporation
> Personal access token:
Checking if this extension is already published
It is, update the extension
error: Failed Request: Bad Request(400) - Uploaded extension package is either missing an 
icon or the provided icon image does not comply with the required dimensions. 
Try again with a square icon with size 128 by 128 pixels or larger.

我注意到,如果我从“vss-extension.json”文件中删除 "public": true,,那么一切都会正常工作,并且扩展程序将被加载并且可以正常工作。唯一的问题是它永远不会被发布。根据 MS 的说法,我是授权出版商。

任何人都可以查看下面的“vss-extension.json”文件并检查我是否遗漏了什么。谢谢。

{
"manifestVersion": 1,
"id": "wdc-extension",
"version": "1.0.1",
"name": "Weighted Defect Count Calculation",
"description": "Calculate Weighted Defect Count for bugs in the project. Requires a customized scrum process with 2 new attributes: GrundfosScrum.gfLikelihood, and GrundfosScrum.gfSeverity",
"publisher": "wolfguru",
"icons": {
    "default": "images/logo_circle.png"
},
"public": true,
"targets": [
    {
        "id": "Microsoft.VisualStudio.Services"
    }
],
"content": {
    "details": {
        "path": "overview.md"
    }
},
"contributions": [
    {
        "id": "wdc",
        "type": "ms.vss-web.hub",
        "description": "Weighted Defect Count",
        "targets": [
            "ms.vss-work-web.work-hub-group"
        ],
        "properties": {
            "name": "WDC Calculation",
            "order": 99,
            "uri": "index.html"
        }
    }
],
"files": [
    {
        "path": "index.html",
        "addressable": true
    },
    {
        "path": "overview.md",
        "addressable": true
    },
    {
        "path": "sdk/scripts",
        "addressable": true
    },
    {
        "path": "images/logo_circle.png",
        "addressable": true
    }
],
"scopes": [
    "vso.work"
],
"tags": [
    "bugs",
    "project management",
    "risk management",
    "defect management"
],
"screenshots": [
    {
        "path": "screenshots/screen1.png"
    }
]}

【问题讨论】:

    标签: javascript json azure-devops azure-devops-extensions


    【解决方案1】:

    我发现了问题。

    正如错误消息所暗示的那样,问题在于图标大小。好像发布的时候图标大小不能大于128 x 128像素,但是如果我不发布的话可以大一点。

    很奇怪,但这就是原因。我调整了图标的大小,现在扩展已发布,尽管扩展内的图标未正确显示:(。将找到解决方法:)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-05-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-08-25
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多