Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Team Foundation Server 2015 Customization

You're reading from   Team Foundation Server 2015 Customization Take your expertise to the next level by unraveling various techniques to customize TFS 2015

Arrow left icon
Product type Paperback
Published in Oct 2015
Publisher
ISBN-13 9781785888199
Length 208 pages
Edition 1st Edition
Concepts
Arrow right icon
Author (1):
Arrow left icon
Gordon Beeming Gordon Beeming
Author Profile Icon Gordon Beeming
Gordon Beeming
Arrow right icon
View More author details
Toc

Table of Contents (12) Chapters Close

Preface 1. Creating a Dashboard and a Welcome Page FREE CHAPTER 2. Streamlining Your Teams' Boards 3. Customizing Your Process Template 4. Enhanced Work Item Forms with Field Custom Controls 5. The Guide Standards for Check-in Policies 6. Enforcing Standards with Server-Side Plugins 7. Customizing the TFS Build 8. Creating TFS Scheduled Jobs 9. Service Hooks 10. VSO Extensions Index

How do I use a custom activity in a build template?


The easiest way to add an activity to a build definition is to actually have the build definition as part of the same solution. If you are using separate source controls for current build templates and your activities, then you can either move the build templates permanently into a solution file as an activity library, or keep copying the build template to your main project. For now, what I will do is move the build template and change the source in the build definition later. Add a new Activity Library project to the solution, as follows:

Figure 15: Adding a new activity library to the project

We delete the ActivityDesigner1.xaml file, which was automatically created for us, and then copy and paste the CustomTfvcTemplate.12.xaml file we saved earlier into this project. Set Build Action to Content. Now open your template file, and when all the workflow steps are collapsed, it should look something like this:

Figure 16: The build template workflow...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime