Team Foundation Server 2008 in Action
By Jamil Azher
()
About this ebook
Microsoft Team Foundation Server 2008 (TFS), the server component of Microsoft's Visual Studio Team System (VSTS), provides a powerful collaborative platform for software-development teams. The product offers an integrated toolset for tracking work items, creating test cases, managing source code, generating builds, constructing database schemas, and so on. Because in software development one size does not fit all, TFS provides process customization, project management, and reporting capabilities to build solutions around your requirements.
Team Foundation Server 2008 in Action is a hands-on guide to Team Foundation Server 2008. Written for developers with a good handle on TFS basics, this book shows you how to solve real-life problems. It's not a repetition of Microsoft's product documentation. Team Foundation Server 2008 in Action is a practitioner's handbook for how to work with TFS under common constraints. This book walks you through real-life software engineering problems based on hundreds of hours of TFS experience.
You'll benefit from expert author Jamil Azher's extensive interactions with members of Microsoft's TFS team and MVPs, survey feedback from the author's blog, and interviews with organizations and user groups using TFS. Instead of just offering a high-level overview, the book provides detailed solutions for solving common-and not-so-common-problems using TFS. It discusses the strengths as well as weaknesses of TFS, and suggests appropriate problem resolution steps, workarounds, or custom solutions.
Purchase of the print book comes with an offer of a free PDF, ePub, and Kindle eBook from Manning. Also available is all code from the book.
Jamil Azher
Jamil Azher has over 18 years of experience in software development ranging from hands-on programming, global project management, technology leadership, and entrepreneurial ventures. He currently works as a technology architect at Microsoft Corporation in Silicon Valley. Over the years, Jamil has coached members of the technical staff, created architecture of major products and services, developed technology plans for venture funding, supervised development of globally-distributed applications, and interacted with many diverse organizations regarding technology strategy and roadmap. Jamil has a master's degree in IT from Harvard and bachelor's degree in engineering from Caltech. He is the author of Global Outsourcing using VSTS, published by Thomson Delmar Learning.
Related to Team Foundation Server 2008 in Action
Related ebooks
JBoss in Action: Configuring the JBoss Application Server Rating: 0 out of 5 stars0 ratingsWPF in Action with Visual Studio 2008: Covers Visual Studio 2008 Service Pack 1 and .NET 3.5 Service Pack 1! Rating: 0 out of 5 stars0 ratingsContinuous Integration in .NET Rating: 0 out of 5 stars0 ratingsAzure in Action Rating: 0 out of 5 stars0 ratingsOpen Source SOA Rating: 0 out of 5 stars0 ratingsFlex on Java Rating: 0 out of 5 stars0 ratingsJess in Action: Rule-Based Systems in Java Rating: 0 out of 5 stars0 ratingsZend Framework in Action Rating: 0 out of 5 stars0 ratingsGetting MEAN with Mongo, Express, Angular, and Node Rating: 5 out of 5 stars5/5SQL Server 2008 Administration in Action Rating: 0 out of 5 stars0 ratingsTest Driven: Practical TDD and Acceptance TDD for Java Developers Rating: 0 out of 5 stars0 ratingsAnt in Action: Second Edition of Java Development with Ant Rating: 0 out of 5 stars0 ratingsPlay for Java Rating: 0 out of 5 stars0 ratingsCollective Intelligence in Action Rating: 4 out of 5 stars4/5hapi.js in Action Rating: 0 out of 5 stars0 ratingsThe Cloud at Your Service: The when, how, and why of enterprise cloud computing Rating: 0 out of 5 stars0 ratingsSeam in Action Rating: 0 out of 5 stars0 ratingsOpen-Source ESBs in Action: Example Implementations in Mule and ServiceMix Rating: 0 out of 5 stars0 ratingsActiveMQ in Action Rating: 0 out of 5 stars0 ratingsASP.NET 2.0 Web Parts in Action: Building Dynamic Web Portals Rating: 0 out of 5 stars0 ratingsLearn System Center Configuration Manager in a Month of Lunches: Covers SCCM 1511 and Windows 10 Rating: 0 out of 5 stars0 ratingsSharePoint 2007 Developer's Guide to Business Data Catalog Rating: 0 out of 5 stars0 ratingsSingle Page Web Applications: JavaScript end-to-end Rating: 0 out of 5 stars0 ratingsGradle in Action Rating: 4 out of 5 stars4/5Wicket in Action Rating: 0 out of 5 stars0 ratingsAjax in Action Rating: 0 out of 5 stars0 ratingsFlexible Rails: Flex 3 on Rails 2 Rating: 0 out of 5 stars0 ratingsEnterprise OSGi In Action Rating: 0 out of 5 stars0 ratingsSPA Design and Architecture: Understanding single-page web applications Rating: 0 out of 5 stars0 ratingsiBATIS in Action Rating: 0 out of 5 stars0 ratings
Enterprise Applications For You
Bitcoin For Dummies Rating: 4 out of 5 stars4/5Creating Online Courses with ChatGPT | A Step-by-Step Guide with Prompt Templates Rating: 4 out of 5 stars4/5The Ridiculously Simple Guide to Google Docs: A Practical Guide to Cloud-Based Word Processing Rating: 0 out of 5 stars0 ratings50 Useful Excel Functions: Excel Essentials, #3 Rating: 5 out of 5 stars5/5ChatGPT Ultimate User Guide - How to Make Money Online Faster and More Precise Using AI Technology Rating: 0 out of 5 stars0 ratingsQuickBooks Online For Dummies Rating: 0 out of 5 stars0 ratingsExcel : The Ultimate Comprehensive Step-By-Step Guide to the Basics of Excel Programming: 1 Rating: 5 out of 5 stars5/5QuickBooks 2023 All-in-One For Dummies Rating: 0 out of 5 stars0 ratingsScrivener For Dummies Rating: 4 out of 5 stars4/5The New Email Revolution: Save Time, Make Money, and Write Emails People Actually Want to Read! Rating: 5 out of 5 stars5/5Excel Formulas and Functions 2020: Excel Academy, #1 Rating: 4 out of 5 stars4/5Excel 2019 For Dummies Rating: 3 out of 5 stars3/5MrExcel XL: The 40 Greatest Excel Tips of All Time Rating: 4 out of 5 stars4/5Systems Thinking: Managing Chaos and Complexity: A Platform for Designing Business Architecture Rating: 4 out of 5 stars4/5QuickBooks Online For Dummies Rating: 0 out of 5 stars0 ratingsQuickBooks 2021 For Dummies Rating: 0 out of 5 stars0 ratingsExcel 2016 For Dummies Rating: 4 out of 5 stars4/5Microsoft Power Platform A Deep Dive: Dig into Power Apps, Power Automate, Power BI, and Power Virtual Agents (English Edition) Rating: 0 out of 5 stars0 ratingsData Governance: How to Design, Deploy and Sustain an Effective Data Governance Program Rating: 4 out of 5 stars4/5Excel Formulas That Automate Tasks You No Longer Have Time For Rating: 5 out of 5 stars5/5Excel Tips and Tricks Rating: 0 out of 5 stars0 ratingsEnterprise AI For Dummies Rating: 3 out of 5 stars3/5Mastering QuickBooks 2020: The ultimate guide to bookkeeping and QuickBooks Online Rating: 0 out of 5 stars0 ratingsExperts' Guide to OneNote Rating: 5 out of 5 stars5/5101 Ready-to-Use Excel Formulas Rating: 4 out of 5 stars4/5
Reviews for Team Foundation Server 2008 in Action
0 ratings0 reviews
Book preview
Team Foundation Server 2008 in Action - Jamil Azher
Copyright
For online information and ordering of this and other Manning books, please visit www.manning.com. The publisher offers discounts on this book when ordered in quantity. For more information, please contact
Special Sales Department
Manning Publications Co.
Sound View Court 3B fax: (609) 877-8256
Greenwich, CT 06830 email:
orders@manning.com
©2009 by Manning Publications Co. All rights reserved.
No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by means electronic, mechanical, photocopying, or otherwise, without prior written permission of the publisher.
Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in the book, and Manning Publications was aware of a trademark claim, the designations have been printed in initial caps or all caps.
Recognizing the importance of preserving what has been written, it is Manning’s policy to have the books we publish printed on acid-free paper, and we exert our best efforts to that end. Recognizing also our responsibility to conserve the resources of our planet, Manning books are printed on paper that is at least 15% recycled and processed without the use of elemental chlorine.
Manning Publications Co.
Sound View Court 3B
Greenwich, CT 06830
Development Editor Jeff Bleiel
Copyeditor: Benjamin Berg
Typesetter: Gordan Salinovic
Cover designer: Leslie Haimes
Proofreader: Katie Tennant
Printed in the United States of America
1 2 3 4 5 6 7 8 9 10 – MAL – 13 12 11 10 09 08
Dedication
To my father, Azher Ali, and my mother, Sakina Azher, who taught me that life’s greatest accomplishments are those that are in the service of humanity
Brief Table of Contents
Copyright
Brief Table of Contents
Table of Contents
Preface
Acknowledgments
About this book
1. Exploring Team Foundation Server
Chapter 1. TFS and the practice of software development
Chapter 2. Exploring the changes in TFS 2008
Chapter 3. Introducing VSTS 2008 Database Edition
2. Diving deep into version control and Team Build
Chapter 4. Understanding branching in version control
Chapter 5. Understanding branch policies
Chapter 6. Understanding merging in version control
Chapter 7. Understanding Team Build
Chapter 8. Versioning assemblies using Team Build
3. Administering and customizing TFS
Chapter 9. Configuring and extending TFS
Chapter 10. Using workflow with TFS
Index
List of Figures
List of Listings
Table of Contents
Copyright
Brief Table of Contents
Table of Contents
Preface
Acknowledgments
About this book
1. Exploring Team Foundation Server
Chapter 1. TFS and the practice of software development
1.1. Background on software development processes
1.2. TFS architecture
1.2.1. Client tier
1.2.2. Application tier
1.2.3. Data tier
1.3. Major features
1.3.1. Work item tracking
1.3.2. Version control
1.3.3. Build automation
1.3.4. Project portal
1.3.5. Reporting
1.4. Summary
1.5. References
Chapter 2. Exploring the changes in TFS 2008
2.1. Team Build
2.1.1. Topology and security
2.1.2. Build agents and team projects
2.1.3. Understanding the structure of the build directory
2.1.4. Creating a new build definition
2.1.5. Launching and queuing builds
2.1.6. Build definitions and security
2.1.7. Running parallel builds
2.1.8. Using the Build Explorer
2.1.9. Managing build qualities
2.1.10. Generating incremental builds
2.1.11. Exploring the Team Build object model
2.1.12. A sample program for queuing builds
2.1.13. Determining which build contains a particular fix
2.2. Team Foundation version control
2.2.1. Get the latest on check-out
2.2.2. Working offline
2.2.3. Folder comparison
2.2.4. Annotate
2.3. Summary
Chapter 3. Introducing VSTS 2008 Database Edition
3.1. A quick tour of DB Pro
3.1.1. Creating a database project
3.1.2. Making changes offline
3.1.3. Deploying modified schema to a test database
3.1.4. Generating test data
3.1.5. Creating unit tests
3.1.6. Deploying the modified schema to production database
3.2. Building database projects
3.2.1. Using MSBuild to build database projects
3.2.2. Using Team Build to build database projects
3.3. Technical review: creating a custom data generator
3.4. Summary
2. Diving deep into version control and Team Build
Chapter 4. Understanding branching in version control
4.1. Benefits of using a version control system
4.2. Company types and branching issues
4.2.1. Small companies
4.2.2. Large companies
4.2.3. Large companies with distributed TFS
4.3. Branching models
4.3.1. The code promotion model
4.3.2. The codeline-per-release model
4.3.3. The branch-by-release model
4.3.4. A branching model for large projects
4.3.5. A remote branch model for distributed teams
4.4. Branches versus labels
4.4.1. Identifying changes after creating a label
4.5. Branches versus folders
4.6. Sharing code between team projects
4.7. Branches and builds
4.8. Using Team Foundation Sidekicks
4.9. Summary
4.10. References
Chapter 5. Understanding branch policies
5.1. Policies and branches
5.1.1. Access control policies
5.1.2. Check-in policies
5.2. Determining access control policies
5.2.1. Understanding locks
5.2.2. Using the TFSSecurity tool
5.3. Using the Custom Path policy
5.4. Creating a custom policy
5.4.1. Understanding the core interfaces
5.4.2. Technical implementation
5.4.3. Installing custom policies
5.5. Summary
Chapter 6. Understanding merging in version control
6.1. Viewing merge history
6.2. Viewing changes
6.3. Comparing contents of two branches
6.4. Determining merge candidates and conflicts
6.5. Resolving merge conflicts
6.6. Rolling back a merge
6.7. Understanding baseless merges
6.8. Notifying developers about concurrent changes
6.8.1. The TFS event engine
6.8.2. Technical review: implementing an event receiver web service
6.9. Summary
Chapter 7. Understanding Team Build
7.1. Company types and build issues
7.1.1. Small companies
7.1.2. Large companies
7.1.3. Large companies with distributed TFS
7.2. An overview of Team Build
7.2.1. Architecture
7.2.2. The build project file
7.2.3. Target execution order
7.2.4. Customizing targets
7.2.5. Detecting the reason for build failure
7.2.6. Build directories
7.2.7. Coupling between TFS and build machines
7.2.8. Associating changesets and related work items
7.3. Creating builds from labeled source files
7.3.1. Creating a new build from a label
7.3.2. Reproducing a previous build from a label
7.4. Deploying ClickOnce
7.4.1. Configuring ClickOnce
7.4.2. Extending Team Build to incorporate ClickOnce
7.4.3. Creating a custom task to configure deployment files
7.4.4. Configuring ClickOnce using Team Build tasks
7.5. A source code submission service
7.5.1. Step 1—Create a shelveset for code submission
7.5.2. Step 2—Submit change information via submission web site
7.5.3. Step 3—Process requests using the submission service
7.6. Technical review: creating the source code submission service
7.6.1. Creating a Team Build project and downloading baseline source files
7.6.2. Downloading the shelveset
7.6.3. Running prebuild checks
7.6.4. Launching the build process
7.6.5. Evaluating build results
7.7. Desktop builds
7.8. TFS and distributed builds
7.8.1. Scenario: central build machine
7.8.2. Scenario: distributed build machines
7.9. Summary
7.10. References
Chapter 8. Versioning assemblies using Team Build
8.1. Assembly versioning background
8.2. Versioning Windows applications
8.3. Customizing Team Build to support assembly numbering
8.3.1. Technical approach
8.3.2. Technical Implementation
8.4. Versioning web applications
8.4.1. Building web sites
8.4.2. Building web sites using VS 2005 Web Deployment Projects
8.4.3. Strategy for autoincrementing build numbers
8.4.4. Modifying the team project file
8.5. Summary
3. Administering and customizing TFS
Chapter 9. Configuring and extending TFS
9.1. Company types and TFS configuration issues
9.1.1. Small companies
9.1.2. Large companies
9.1.3. Large companies with distributed TFS
9.2. Organizing team projects
9.2.1. Work items
9.2.2. Version control
9.2.3. Reports
9.2.4. Project portal
9.2.5. Process model
9.2.6. Security
9.2.7. General recommendations for organizing team projects
9.3. Limitations and considerations when creating team projects
9.3.1. System limitations
9.3.2. Moving team projects
9.4. Performance and high availability
9.4.1. Load balancing
9.4.2. Reducing load on the application-tier machine
9.4.3. Reducing load on the data-tier machine
9.4.4. 64-bit processor support
9.4.5. High availability and disaster recovery
9.5. Using custom controls in work item forms
9.5.1. Creating custom controls
9.5.2. Technical review: creating custom controls
9.6. Creating and using KPIs for TFS
9.6.1. Step 1—Creating a business intelligence project
9.6.2. Step 2—Creating calculated members
9.6.3. Step 3—Constructing KPIs
9.6.4. Step 4—Viewing KPIs
9.7. Summary
Chapter 10. Using workflow with TFS
10.1. Company types and workflow issues
10.1.1. Small companies
10.1.2. Large companies
10.1.3. Large companies with distributed TFS
10.2. Built-in workflow capabilities in TFS
10.3. An overview of Windows Workflow Foundation
10.3.1. Layers in WF
10.3.2. Creating WF applications
10.4. Creating a central build from distributed TFS machines
10.5. Technical review: using WF to manage a distributed build process
10.5.1. Step 1—Downloading source files from the reference project
10.5.2. Step 2—Handling failed download of the reference project
10.5.3. Step 3—Handling successful download of the reference project
10.5.4. Step 4—Downloading source files from the primary project
10.5.5. Step 5—Handling failed download of the primary project
10.5.6. Step 6—Handling successful download of the primary project
10.5.7. Step 7—Handling outgoing and incoming emails
10.6. Enabling workflow persistence
10.7. Enabling workflow tracking
10.8. Summary
Index
List of Figures
List of Listings
Preface
Ever since I started writing software code—over two decades ago, but it feels like just the other day—I’ve wondered whether I’m doing it the right
way. I still haven’t figured out what the right way is—but I’m sure that I’ve done software development in plenty of wrong ways.
When I created my first BASIC program for a college project many years ago, it was a long list of spaghetti code
hundreds of lines long, with no separation of concerns. (Although object-oriented or service-oriented programming didn’t exist in those days, I could’ve used subroutines to mitigate the problem.) After a disastrous outcome, I quickly learned the value of solving complex problems by weaving together simple pieces.
When I started to write code for a living, I didn’t think to ask clients for written requirements and acceptance criteria. I did months of wasted work assuming that I understood their stated, though undocumented, business needs. I found out that despite good intentions, misunderstandings can occur when objectives aren’t specified and expectations aren’t recorded.
When I started to manage globally distributed teams, I learned that simply reviewing status reports carries no assurance that projects are on track. I realized that visibility has to come from the state of the software and not from a report that someone writes based on conversations with developers. The tricky part, of course, was to be able to create a mechanism so that software state can be defined, measured, and monitored.
When I began working on enterprise projects, I underestimated the difficulty associated with integrating disparate systems and managing complex deployments in outsourced datacenters. The problems became more acute when organizational boundaries needed to be crossed. I learned about the complexity of modern IT environments and how optimistic assumptions about integration and deployment can lead to execution failures and even expensive lawsuits.
Let’s face it. Software development has never been easy and is not getting any easier. The technology learning curve is getting steeper; the requirements for security, interoperability, and availability are increasingly stringent; and project teams are becoming dispersed in multiple locations and time zones. While the tools have improved significantly over time, so has complexity. As a professional software developer, I don’t feel that my job is easier than what it was a decade ago. There are now more wrong ways to develop software development than ever before.
This leads us back to the original question. What is the right way to do software development? There’s no shortage of methodologies and technologies from which to choose. As a community, we’ve made significant progress based on accumulated experience. But independent studies show that the overall success rate for software projects remains stuck between 30 and 35 percent (projects that are completed on time, within budget, and meet requirements).
Perhaps there’s no universal right way to do software development. Perhaps it’s situation-specific. Perhaps it depends on project type, skill level, team structure, motivation, organizational culture, experience, and deadlines. This is what I’ve come to believe. Although we could define a small set of universal rights
(for example, making code secure) and wrongs
(shipping code without testing), many of the good and bad practices are context-specific. And some aren’t. The art of project management is defining what makes sense in your environment.
This realization has led me to think about adopting a flexible application lifecycle management (ALM) platform instead of trying to find a silver bullet. While I think that the right strategy is situation-specific, once you define what’s right for a given situation, you need an infrastructure to implement it.
I don’t know of many organizations that can easily create a horizontal ALM platform. Instead, people buy or download individual tools for various pieces of the ALM solution. (The few integrated toolsets available in the market have traditionally been too expensive or too inflexible.) For a long time, I used these individual tools, but always found it difficult to weave them together on an end-to-end basis. Many of the products worked fine as point solutions, but covering the entire software development lifecycle using disparate tools isn’t an easy undertaking. Nor is it efficient.
One day in 2004, I heard about a product called Visual Studio Team System (VSTS) from Microsoft. The server piece of VSTS is called Team Foundation Server (TFS). This is the component responsible for the platform’s ALM capabilities. What impressed me right away was the system’s integrated functionalities—covering the entire software lifecycle. The next welcome feature was its customizability. From that day on, I’ve spent many exhausting days and sleepless nights tinkering with TFS, talking to customers, and thinking about how the product can be used to solve real-life problems.
I wanted to share my observations by writing a book. I wanted to write based on real-life challenges—the learning that comes from the collective experience of the community of software professionals. I tried to capture that knowledge from one-on-one interviews, newsgroup postings, user group meetings, and experimentations with the product.
TFS is an ambitious product. Like any large product, many of its operational, programmable, and extensible features aren’t self-evident. Moreover, customizations and workarounds are sometimes needed to meet specific needs. I wanted to write a book that provided this kind of actionable information to the practitioners.
To me, TFS was a compelling story that had to be told.
I wanted to tell that story.
Acknowledgments
A book project is rarely a solo undertaking. The insights of many defined and enriched the material presented here. Writing a book is like running a marathon. And having a great team makes all the difference.
Many thanks to my editor Michael Stephens and Manning publisher Marjan Bace for defining the vision and making the project a reality.
Thanks to development editor Jeff Bleiel for making the chapters user-friendly. I am grateful to copyeditor Benjamin Berg and to technical proofreader Robert Horvick for catching errors and offering suggestions that made the content more readable and relevant. Thanks to project editor Mary Piergies for keeping the endeavor on track and to Karen Tegtmeyer for coordinating the reviews. Thanks to proofreader Katie Tennant for her extraordinary patience as we went back and forth on changes. The Manning team was a pleasure to work with and I’m grateful for their professional support.
My heartfelt thanks to reviewers Buck Hodges, Michael Ruminer, Benjamin Day, Steven Borg, Martin Woodward, Willy-Peter Schaub, Dave Corun, Eric Swanson, Christian Siegers, Derik Whittaker, David Barkol, Alpana Prasad, and many others for their input and feedback. Without their guidance and mentorship, the book would not be what it is today. Thanks to the technical team at Orion Informatics—Shafqat Ahmed, Zakir Hossain, Omar Raihan, Manojit Paul, Rabiul Islam, and Farzana Samad—for ensuring the accuracy of the code.
Finally, my love and gratitude to my dear wife Rokeya Khan for tolerating the late nights, mood swings, and abrogation of family responsibilities. How could I not also thank my young sons, Nasif and Zarif, for believing that someday I’ll tear myself from the computer and show them the magical place where the earth meets the sky!
About this book
This book is about the science of creating software. More and more organizations are demanding that instead of being a mysterious activity practiced by a smart but unsocial group of people, software development should become a transparent business process that produces reliable outcomes. Software has become too important in the modern world to leave its creation to chance and faith.
Transparency generates trust. Communication improves productivity. Collaboration decreases execution risks. These are time-honored tenets that work when undertaking any team activity. Software development is no different. But implementing this knowledge in everyday software development activities isn’t easy, given how diverse the stakeholders are and how dispersed the teams are. It requires a platform that facilitates transparency, collaboration, and communication without any special effort by the practitioners involved. After all, people on the project teams already have too many other issues to think about.
This book teaches you how to use TFS to implement a consistent, reliable, and repeatable software development process. You’ll learn how the platform works out of the box as well as how to customize it. You’ll understand some of the limitations as well as the possibilities. You’ll realize that software development doesn’t have to be based on luck and last-minute heroics. You can construct, instrument, and institute a process that produces better outcomes. TFS gives you that power.
Audience
This book is intended for ALM practitioners in the field. It contains actionable information for program and project managers looking to set up their preferred development processes and to monitor execution status. There’s information for developers interested in optimally configuring source code repositories and build systems. There’s guidance for database professionals attempting to better integrate their work with the rest of the development activities. And there’s material for IT administrators thinking about deploying the platform in managed data centers in a secure, scalable, and highly available manner.
The goal of the TFS platform is to integrate the myriad stakeholders in the extended development team.
The book is for people who are trying to make it happen.
Roadmap
Chapter 1 starts with a brief background on the evolution of software development methodologies. We then learn how TFS fits into the overall application lifecycle management (ALM) landscape and what the platform’s key features are. We review the major functional areas to get a conceptual understanding of how the system works as a whole.
Chapter 2 describes the changes in TFS 2008. TFS 2008 offers important enhancements in build and version control. These changes improve performance, scalability, and flexibility.
Chapter 3 talks about the database management capabilities of TFS. Despite the ubiquitous presence of databases in software development efforts, database professionals have traditionally had to operate outside the mainstream development processes. We learn how TFS can integrate database management in the core development process.
Chapter 4 reviews the underlying principles of effective source code management. We learn how to undertake parallel development using various branching models. We also learn how to maintain shared code and coordinate the work of distributed feature teams.
Chapter 5 talks about version control policies. Policies are important because they provide consistent guidance regarding what’s acceptable in a given development process. In this chapter, we learn about access control as well as check-in policies.
Chapter 6 introduces the concept of merging. Given the complexities of real-life merge operations, effective tool support is essential for productivity and safety. We also learn about the TFS event engine and how it can be used to coordinate code maintenance actions of distributed teams.
Chapter 7 is about creating reliable builds. We learn about the core concepts in Team Build and explore its inner workings. We then apply this knowledge to create different kinds of builds. We also create a service that creates test builds before committing changes to the main repository.
Chapter 8 delves into the details of setting up an automated system for versioning assemblies. This is important because without an effective versioning mechanism, you end up in chaos when deploying build binaries. We learn about versioning Windows as well as web applications.
Chapter 9 focuses on the operational aspects of TFS. We learn how to deploy TFS for scalability and availability, how to weigh relevant factors when organizing team projects, and how to create and expose key performance indicators (KPIs) for monitoring project health.
Chapter 10 switches gears and talks about TFS within the context of larger business processes. We explore how TFS can be integrated in a broader organizational workflow. The benefits of a workflow-based system include built-in support for long-running activities, better resource management, and tracking features.
Code conventions and downloads
All source code in listings or in text is in a fixed-width font like this to separate it from ordinary text. Code annotations accompany many of the listings, highlighting important concepts. In some cases, numbered bullets link to explanations that follow the listing.
The complete example code for the book can be downloaded from the Manning web site at www.manning.com/azher or www.manning.com/TeamFoundationServerinAction. You’ll find source code and other supporting artifacts there.
Author Online
The purchase of Team Foundation Server in Action includes free access to a private forum run by Manning Publications where you can make comments about the book, ask technical questions, and receive help from the author and other users. You can access and subscribe to the forum at www.manning.com/azher or www.manning.com/TeamFoundationServerinAction. This page provides information on how to get on the forum once you are registered, what kind of help is available, and the rules of conduct in the forum.
Manning’s commitment to our readers is to provide a venue where a meaningful dialogue among individual readers and between readers and author can take place. It’s not a commitment to any specific amount of participation on the part of the author, whose contribution to the book’s forum remains voluntary (and unpaid). We suggest you try asking the author some challenging questions, lest his interest stray!
The Author Online forum and the archives of previous discussions will be accessible from the publisher’s website as long as the book is in print.
About the title
By combining introductions, overviews, and how-to examples, the In Action books are designed to help learning and remembering. According to research in cognitive science, the things people remember are things they discover during self-motivated exploration.
Although no one at Manning is a cognitive scientist, we are convinced that for learning to become permanent it must pass through stages of exploration, play, and, interestingly, retelling of what is being learned. People understand and remember new things, which is to say they master them, only after actively exploring them. Humans learn in action. An essential part of an In Action guide is that it is example-driven. It encourages the reader to try things out, to play with new code, and explore new ideas.
There is another, more mundane, reason for the title of this book: our readers are busy. They use books to do a job or to solve a problem. They need books that allow them to jump in and jump out easily and learn just what they want just when they want it. They need books that aid them in action. The books in this series are designed for such readers.
About the cover illustration
The figure on the cover of Team Foundation Server in Action is captioned A Friend of the Artist.
The illustration is taken from a French book, Encyclopedie des Voyages by J. G. St. Saveur, published in Paris in the 19th century. The diversity of the drawings in the Encyclopedie speaks vividly of the uniqueness and individuality of the world’s towns and provinces and of its citizens less than 200 years ago. This was a time when dress codes identified people uniquely as belonging to a certain locality or country or profession or station in life, and that were easily recognizable by others.
Dress codes have changed since then and the diversity and distinctions by region and class, so rich at the time, have faded away. It is now often hard to tell the inhabitant of one continent from another. Perhaps, trying to view it optimistically, we have traded a cultural and visual diversity for a more varied personal life. Or a more varied and interesting intellectual and technical life.
We at Manning celebrate the inventiveness, the initiative, and the fun of the computer business with book covers based on the rich diversity of regional life two centuries ago brought back to life by the pictures from this collection.
Part 1. Exploring Team Foundation Server
In part 1 of the book, we take a broad look at some of the salient features of Team Foundation Server (TFS). We learn how TFS fits into the overall application lifecycle management (ALM) process, what the major features are, how the platform is architected, and how it can be extended.
We also review the changes introduced in TFS 2008—such as major enhancements in Team Build, incremental improvements in Team Foundation version control, and integration of Visual Studio Team System 2008 Database Edition.
Since our goal is to obtain a general understanding of how TFS works, the material in part 1 is mostly introductory in nature. We cover a lot of ground and aim to develop a broad understanding of the major functionalities in TFS.
Chapter 1. TFS and the practice of software development
This chapter covers
Evolution of software development practices
TFS architecture
High-level functionalities
Visual Studio Team System 2008 (VSTS) is Microsoft’s application lifecycle management (ALM) platform for managing the end-to-end software development process. It’s a vast product with wide-ranging capabilities. VSTS first debuted in 2005, with incremental improvements added in 2008, and contains both general purpose as well as role-based capabilities. The platform can be extended as needed. Given how geographically distributed, technically complex, and strategically important enterprise software projects have become, I feel that VSTS deserves a careful look with regard to solving real-life development challenges. The days are gone when you could hope to develop enterprise software, with acceptable quality and within a reasonable timeframe, without effective tool support.
This book is about improving your software projects by leveraging the capabilities of the Microsoft ALM platform. In this book, we learn how to resolve various practical issues by applying the system’s native capabilities, as well as by augmenting them via customizations.
As practitioners in the information technology (IT) industry, we all know that software development isn’t easy. Why this is so has been extensively debated since the industry was born. Despite the advent of myriad development methodologies, infrastructure tools, and careful project management, most projects still run behind schedule and over budget. A recent study showed that only 35 percent of software projects can be categorized as successful (completed on time, within budget, and met user requirements).
Of course, this situation isn’t unique to the IT industry. We see unexpected delays and cost overruns when large-scale projects are undertaken in many other sectors, such as construction, transportation, and life sciences. Perhaps the complex and volatile nature of the real world makes it impossible for humans to make perfect predictions. Nevertheless, unless we constantly strive to improve our estimation and execution processes—with the understanding that perfection is a goal, not a yardstick to beat people with—progress, however incremental, will become impossible. Chaos comes easy.
While I don’t know of an absolute right
way to do software development, I do feel that outcomes can be improved by focusing on the basics. Industry studies have shown that key success factors include executive support, effective communication between stakeholders, good architecture, skilled team members, incremental development, extensive testing, requirement stability, and the ability to dynamically adjust course based on changing realities. There are no surprises here. Therefore, the question becomes not so much whether we know what the best practices are as much as how best to practice them on a day-to-day basis. Of course, you need to deal with some issues (such as obtaining and retaining skilled resources) in an administrative manner. For others, it’s critical that you select an ALM platform that can mitigate execution risks and promote adoption of good practices. VSTS is such a platform.
The client portion of VSTS is segmented along various roles—architects, developers, testers, and database professionals (see figure 1.1). If you’re interested in all client-side features, you can purchase Visual Studio Team System 2008 Team Suite, which combines the full range of capabilities. Stakeholders who need