Search icon CANCEL
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

Creating custom activities


A build definition is made up of a whole lot of components, called activities. Let's start creating our own activity by creating a new Activity Library, as shown in this screenshot:

Figure 13: A new Activity Library project

First, let's delete the Activity1.xaml file that was created for us in the project. Next, add a code activity called DocumentBuildActivity.cs. You will find the Code Activity item template under the Workflow section in the Add New Item dialog. Now, we need to add a reference to Microsoft.TeamFoundation.Build.Client.dll. We are going to use NuGet for this package instead of searching for our local machine as we did previously in this chapter.

There is a NuGet package that is now available for TFS 2015 and contains all the object model assemblies in it. To do this, we will open Package Manager Console in Visual Studio and then make sure that http://www.nuget.org/ is set as the package source. Your activities project is selected as the default project...

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 AU $24.99/month. Cancel anytime