我创建了一个 Azure DevOps Server 小部件。当我尝试集成设置时,小部件突然停止加载。我使用 Microsoft 的示例检查了我的配置,但没有找到解决方案。我的 vss-extension.json: "manifestVersion": 1, "id": "ado-report-tfs-addon", "version": "1.0.0", "name": "ADO Report Widget", "description": "You can see at a glance if a team has free capacity for new features.", "publisher": "bci", "icons": { "default": "img/icon.png" }, "targets": [ { "id": "Microsoft.VisualStudio.Services" } ], "tags": [ "ado-report", "report", "widgets", "dashboard" ], "screenshots": [ { "path": "img/sampleImage1.png" }, { "path": "img/sampleImage2.png" } ], "content": { "details": { "path": "README.md" } }, "links": { "getstarted": { "uri": "https://rb-tfsbci.de.bosch.com/tfs/OpConDev/Nx_Base/_git/ado-widgets" }, "learn": { "uri": "https://rb-tfsbci.de.bosch.com/tfs/OpConDev/Nx_Base/_git/ado-widgets" }, "license": { "uri": "https://rb-tfsbci.de.bosch.com/tfs/OpConDev/Nx_Base/_git/ado-widgets" }, "support": { "uri": "https://rb-tfsbci.de.bosch.com/tfs/OpConDev/Nx_Base/_git/ado-widgets" } }, "repository": { "type": "git", "uri": "https://rb-tfsbci.de.bosch.com/tfs/OpConDev/Nx_Base/_git/ado-widgets" }, "branding": { "color": "87C2E1", "theme": "light" }, "categories": [ "Collaborate" ], "contributions": [ { "id": "ADOReport1", "type": "ms.vss-dashboards-web.widget", "targets": [ "ms.vss-dashboards-web.widget-catalog", "bci.ado-report-tfs-addon.ADOReport.Configuration" ],
1 回答
largeQ
TA贡献2039条经验 获得超7个赞
在 main.js 中,您在加载参数中缺少 widgetSettings 参数,例如
return {
load: function (widgetSettings) {
return YourLoadFunction(widgetSettings);
},
reload: function (widgetSettings) {
return YourReloadFunction(widgetSettings);
}
}
添加回答
举报
0/150
提交
取消