Create a build definition

Build tab

Select a template

If a template is relevant to your scenario, select it to automatically add some steps and apply typical settings. For example, if you create a new Visual Studio build, you automatically get steps to compile and test, along with other steps and settings you typically need to build a .NET app.

Start with an empty definition

If there's no template for your scenario, select Empty and then add the build steps you need.

Replicate a definition

If your definition has a pattern that you want to replicate in other definitions, clone it or create a template.

Clone or save as a template

Clone a definition

After you clone a definition, the copy appears in your list of builds.

Cloned build definition

Create a template

After you create a template, your team members can use it to follow the pattern in new definitions.

Create a build definition from a template

Save a draft

To test some changes that are not yet ready for production, save a draft.

Save as a draft

When you're ready you can publish and keep the changes or delete them.

Save as a draft

Q&A

Where can I learn step-by-step how to build my app?

Build your app

How do I programatically create a build definition?

REST API Reference: Create a build definition

Do I need a build agent?

You need at least one agent run your build.

  • Hosted agent pool might be your easiest option if your code is built on Windows and your code is on Visual Studio Team Services.

  • Deploy Windows agents to build Windows, Azure, and other Visual Studio solutions. Windows agents can also build Java and Android apps.

  • Deploy Xplat agents to build Xcode, Android, Java, or other kinds of apps

I can't select a default agent queue and I can't queue my build. How do I fix this?

See Scale out and administer your build system: Manage your queues

I use Team Foundation Server on-premises and I don't see some of these features. Why not?

Some of these features are available only on Visual Studio Team Services and not yet available on-premises. Some features are available on-premises if you have upgraded to the latest version of TFS.

Where is the Visual Studio 2013 XAML build documentation?

Visual Studio 2013 XAML build documentation