Getting Started With the TFS Object Model

Post on 22-Nov-2014

3,563 views 4 download

Tags:

description

Microsoft's Team Foundation Server (TFS) is a very capable platform for integrating all aspects of the software development lifecycle (SDLC). There is a great deal of functionality provided out of the box that will handle the majority of a development team's needs. However, there are times when you need to extend the functionality of TFS to handle scenarios not anticipated by Microsoft (or they just didn't have the time to get them built into the product). This session will cover the common APIs provided by the TFS Object Model and provide the knowledge needed to get started developing with TFS right away.

transcript

GETTING STARTED WITH THE TFS OBJECT MODEL

7 October 2011

Jeff BramwellEnterprise Applications Architectjbramwell@gmail.comtwitter.com/jbramwell devmatter.blogspot.com

Please be courteous to your fellow attendees

and

set your phones to vibrate or silent mode!

PLEASE BE COURTEOUS!

WHO AM I?

Jeff Bramwell Enterprise Applications Architect

Farm Credit Services of America Leader, Omaha Team System User

Group Microsoft MVP – Visual Studio ALM MCSD.NET, MCTS: TFS

WHAT ARE WE COVERING?

TFS Architecture General Process (for using the APIs) Demos

TFS ARCHITECTUREClient Tier

Visual Studio

Office(Plug-ins)

Command Line

Other/Custom

Tools

Application Tier

Data Tier

Work Items

Build Data

Data Warehous

e

SourceRepositor

y

Internet Explorer

Team Foundation Server Web Services APITeam Foundation Integration

ServicesTeam Foundation Data Services

Event Notification Services

Linking Service

Registration Service

Work Item

Service

Source Code

Control Service

Build Data

Services

Team Project Portal

Web Parts

Reports

WSS

SSRS

ASP.NET

SQL Server

Team Foundation Client API (Object Model)

WHERE TO EXTEND

Web services – Not Supported Database – Not Supported Reports (via Warehouse) Custom Check-in Policies SharePoint web parts Work item types Process templates Custom work item form controls TFS Object Model

GENERAL PROCESS

1. Connect to TFS Configuration Server/TPC

2. Identify desired services3. Instantiate and interact with services

TFS CONFIGURATION SERVER VS. TPC

TFS Application Instance

Default Collection•Team Project 1•Team Project 2Playground Collection•Team Project A•Team Project B

CONNECTION CLASSES

Both classes offer similar methods Choose class based on scope of

data/servicesAbstract Class

CONNECTION OPTIONS

Several options: Connect via URI Connect via RegisteredConfigurationServer

Connect with custom credentials Connect on behalf of another user Connect using TfsConfigurationFactory Provide a connection dialog via TeamProjectPicker

DEMO

IDENTIFY TFS SERVICES

LIST TEAM PROJECTS

Multiple approaches VersionControlServer CommonStructureService ICatalogService

DEMO

MORE INFORMATION

My Blog http://devmatter.blogspot.com

Visual Studio Blog http://blogs.msdn.com/b/visualstudio/

Visual Studio vNext Forums http://social.msdn.microsoft.com/Forums/en-US/category/vs

vnext

Extending Team Foundation http://msdn.microsoft.com/en-us/library/bb130146.aspx