我有一个内置于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.
更多推荐
发布评论