首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >TFX-CLI在"tfx扩展创建“上失败

TFX-CLI在"tfx扩展创建“上失败
EN

Stack Overflow用户
提问于 2020-10-29 15:33:37
回答 1查看 809关注 0票数 0

后台:使用AzureDevops Services作为Ci/CD,需要在这些文档之后创建自定义的服务终结点

紧随其后的是发布,它正在失败。

目标:创建自定义服务终结点。

问题:在运行"tfx“命令时,我得到了这个错误(似乎没有调试):

代码语言:javascript
复制
C:\Users\USER\Desktop\extension>tfx extension create --trace-level debug
(node:19816) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
TFS Cross Platform Command Line Interface v0.8.3
Copyright Microsoft Corporation
2020-10-29T15:52:51.089Z : cache.getItem
2020-10-29T15:52:51.098Z : merger.merge
2020-10-29T15:52:51.099Z : merger.gatherManifests
2020-10-29T15:52:51.106Z : Merging 1 manifest from the following paths:
2020-10-29T15:52:51.107Z : vss-extension.json
2020-10-29T15:52:51.112Z : Path 'C:\Users\USER\Desktop\extension\node_modules\vss-web-extension-sdk\lib` is a directory. Adding all contained files (recursive).
2020-10-29T15:52:51.115Z : -- VSS.SDK.js
2020-10-29T15:52:51.117Z : -- VSS.SDK.min.js
2020-10-29T15:52:51.120Z : Path 'C:\Users\USER\Desktop\extension\BuildTaskFolder` is a directory. Adding all contained files (recursive).
2020-10-29T15:52:51.121Z : -- task.json
2020-10-29T15:52:51.130Z : Generating [Content_Types].xml
2020-10-29T15:52:51.137Z : Error: There were errors with your extension. Address the following and re-run the tool.
2020-10-29T15:52:51.137Z : One or more 'categories' must be provided.
2020-10-29T15:52:51.137Z :     at C:\Users\USER\AppData\Roaming\npm\node_modules\tfx-cli\_build\exec\extension\_lib\merger.js:212:39
error: Error: There were errors with your extension. Address the following and re-run the tool.
error: One or more 'categories' must be provided.

最好能给你一个建议。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-10-30 06:27:26

根据您的错误信息:错误:必须提供一个或多个“类别”。您需要将类别添加到vss-扩展名. your文件中。此文件包含必需的属性。类别是一个字符串数组,表示扩展名所属的类别。至少必须提供一个类别,并且您可以包含多少个类别是没有限制的。例如:

代码语言:javascript
复制
"categories": [
        "Azure Boards"
],

您可以在文档中找到有关所需属性的更多信息。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/64594361

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档