Build your app
Define the build process
Build your code automatically every time you check it in to catch problems early.
In team explorer, go to the builds page.
Create a build definition.
Give it a name.
Set the trigger to indicate when to run the build. In this case, use the CI trigger to run the build whenever code is checked in.
Map source control folders to build agent folders.
Mark folders as cloaked that don't need to be copied to the build machine - this reduces build time and cost.
Select to use the hosted build controller. If your team needs the binaries from this build, you should copy them to the server.
If you are using Visual Studio 2013, select TfvcTemplate.12.xaml.
Provide the path to the code that you want to build.
Save your new build definition. Now, whenever you check in code for this solution, it will be built automatically.
Verify the build process
Queue a build for the build definition that you created.
Your build is queued.
You've created your first build in the cloud! Because it's a CI build, any time a team member checks in new code, a build is kicked off. This can go a long way in helping your team find and fix build-related issues early.
Q:Are there any restrictions if I want to use a hosted build controller?
A:Yes, there are some. Learn more here.
Q:Is there more information to help me fix my build issues?
A:Yes. Diagnose build problems.
Q:Can I improve the performance of my CI build?
A:Learn more here.
Q:Can I get more information about using the default build templates?
A:Learn more about these build templates.