0

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.

4

2 回答 2

1

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

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

于 2016-11-17T06:45:31.670 回答
0

这可能已经晚了一年,但我刚刚做到了,这就是我解决它的方法。我正在针对 MyGet 的企业版执行此操作,这意味着我有自己的域名,但除此之外的事情应该是相同的。

在构建结束时,我添加了一个命令行任务。

在任务的脚本部分,我添加了以下内容:

curl -X POST --verbose --data-binary @"$(build.artifactstagingdirectory)\templates\Enterprise-Template\EnterpriseBotVSIX\bin\$(BuildConfiguration)\EnterpriseBotTemplate.vsix" -H "X-NuGet-ApiKey: [KEY GOES HERE]" https://botbuilder.myget.org/F/aitemplates/vsix/upload
于 2018-09-20T22:10:44.830 回答