我完成了我的 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.
我注意到,如果我"public": true,
从“vss-extension.json”文件中删除,那么一切都会正常工作,并且扩展程序将被加载并且可以正常工作。唯一的问题是它永远不会被发布。根据 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"
}
]}