无法发布vss-extension。 “public”:true导致错误

问题描述 投票:0回答:1

我完成了我的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个回答
0
投票

我发现了这个问题。

正如错误消息所暗示的那样,问题在于图标大小。在发布时,图标大小似乎不得大于128 x 128像素,但如果我不发布它可能会更大。

很奇怪,但那就是原因。我调整了图标的大小,现在扩展已发布,虽然图标在扩展名中没有正确显示:(。会找到修复:)

© www.soinside.com 2019 - 2024. All rights reserved.