MyGet with VSTS

Use a MyGet feed for the following integration scenarios with VSTS:

  • When code is pushed to a Git repository in VSTS, MyGet pulls the code, builds it, and adds any resulting NuGet packages to a feed.
  • When a NuGet package is built in VSTS, MyGet downloads the package and adds it to a feed.

Create and configure a MyGet feed

  1. If you don't have a MyGet account, get one here.

  2. In MyGet, add a feed.

    Add a feed

  3. Configure the feed.

    Enter the URL and create the feed

Build and deploy a package when code is pushed

  1. Add VSTS to your feed as a build source.

    Add VSTS Git

  2. Use your VSTS account.

    Enter the name of your VSTS account

  3. Authorize MyGet to access you VSTS account.

    Accept the permission request

  4. Configure the build source.

    Link build source

    Now the feed is set up. When code is pushed, view the status of the triggered MyGet builds.

    Triggered build

Deploy a package built on VSTS

  1. Add the VSTS build definition as a package source for your feed.

    Choose VSTS build definition

  2. Use your VSTS account.

    Enter your VSTS account name

  3. Authorize MyGet to access your VSTS account.

    Accept the permission request

  4. Choose a build definition that includes a NuGet package in the build drop.

    Configure build definition

    You've defined the package source.

    The name and source appear in the new feed

Pricing

VSTS doesn't charge for the framework for integrating with external services. Check out the specific service's site for pricing related to their services.

Q & A

Q: Where can I get more information about MyGet?

A: At myget.org.