如何在VSTS版本中将VSIX发布到MyGet?(How to publish a VSIX to MyGet in VSTS Release?)

编程入门 行业动态 更新时间:2024-10-26 10:40:58
如何在VSTS版本中将VSIX发布到MyGet?(How to publish a VSIX to MyGet in VSTS Release?)

我有一个内置于VSTS的VSIX。 我有一个版本,我想将VSIX发布到MyGet。 我可以将NuGet包上传到我的MyGet-NuGet提要,但我无法弄清楚如何将VSIX包上传到我的MyGet-VSIX提要。

此链接: 从VSTS Build发布到MyGet仅适用于NuGet。

I have a VSIX that is built in VSTS. I have a release that I want to publish that VSIX to MyGet. I can upload NuGet packages to my MyGet-NuGet feed, but I can't figure out how to upload VSIX packages to my MyGet-VSIX feed.

This link: Publish to MyGet from a VSTS Build is only for NuGet.

最满意答案

您可以从构建服务器执行HTTP POST到源,以从持续集成过程添加Visual Studio扩展。 POST URL采用/ F // vsix / upload的形式。 请注意,您还必须使用有效的API密钥添加X-NuGet-ApiKeyheader。

另一种选择是将您的VSTS版本作为包源添加到您的Feed中。 然后,MyGet将找到已发布的VSIX并自动将其添加到您的Feed中。

You can do a HTTP POST from your build server to the feed to add a Visual Studio extension from your continuous integration process. The POST URL is in the form of /F//vsix/upload. Note you will have to add the X-NuGet-ApiKeyheader with a valid API key as well.

Another option is adding your VSTS build as a package source to your feed. MyGet will then find the published VSIX and automatically add it to your feed.

更多推荐

本文发布于:2023-08-05 09:25:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1431244.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:中将   版本   如何在   VSTS   Release

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!