Search code examples
vsixmyget

How to publish a VSIX to MyGet in VSTS Release?


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.


Solution

  • 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.