我完成了我的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"
}
]}
答案 0 :(得分:0)
我发现了这个问题。
问题是,正如错误消息所暗示的那样,是由图标大小引起的。发布时,图标大小似乎不得大于128 x 128像素,但如果我不发布,它可能会更大。
很奇怪,但那就是原因。我调整了图标的大小,现在扩展已发布,但扩展名内的图标显示不正确:(。会找到解决方法:)