getting started with the tfs object model
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
![Page 1: Getting Started With the TFS Object Model](https://reader033.vdocuments.site/reader033/viewer/2022061122/546feffaaf7959e71e8b45e6/html5/thumbnails/1.jpg)
GETTING STARTED WITH THE TFS OBJECT MODEL
7 October 2011
Jeff BramwellEnterprise Applications [email protected]/jbramwell devmatter.blogspot.com
![Page 2: Getting Started With the TFS Object Model](https://reader033.vdocuments.site/reader033/viewer/2022061122/546feffaaf7959e71e8b45e6/html5/thumbnails/2.jpg)
Please be courteous to your fellow attendees
and
set your phones to vibrate or silent mode!
PLEASE BE COURTEOUS!
![Page 3: Getting Started With the TFS Object Model](https://reader033.vdocuments.site/reader033/viewer/2022061122/546feffaaf7959e71e8b45e6/html5/thumbnails/3.jpg)
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
![Page 4: Getting Started With the TFS Object Model](https://reader033.vdocuments.site/reader033/viewer/2022061122/546feffaaf7959e71e8b45e6/html5/thumbnails/4.jpg)
WHAT ARE WE COVERING?
TFS Architecture General Process (for using the APIs) Demos
![Page 5: Getting Started With the TFS Object Model](https://reader033.vdocuments.site/reader033/viewer/2022061122/546feffaaf7959e71e8b45e6/html5/thumbnails/5.jpg)
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)
![Page 6: Getting Started With the TFS Object Model](https://reader033.vdocuments.site/reader033/viewer/2022061122/546feffaaf7959e71e8b45e6/html5/thumbnails/6.jpg)
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
![Page 7: Getting Started With the TFS Object Model](https://reader033.vdocuments.site/reader033/viewer/2022061122/546feffaaf7959e71e8b45e6/html5/thumbnails/7.jpg)
GENERAL PROCESS
1. Connect to TFS Configuration Server/TPC
2. Identify desired services3. Instantiate and interact with services
![Page 8: Getting Started With the TFS Object Model](https://reader033.vdocuments.site/reader033/viewer/2022061122/546feffaaf7959e71e8b45e6/html5/thumbnails/8.jpg)
TFS CONFIGURATION SERVER VS. TPC
TFS Application Instance
Default Collection•Team Project 1•Team Project 2Playground Collection•Team Project A•Team Project B
![Page 9: Getting Started With the TFS Object Model](https://reader033.vdocuments.site/reader033/viewer/2022061122/546feffaaf7959e71e8b45e6/html5/thumbnails/9.jpg)
CONNECTION CLASSES
Both classes offer similar methods Choose class based on scope of
data/servicesAbstract Class
![Page 10: Getting Started With the TFS Object Model](https://reader033.vdocuments.site/reader033/viewer/2022061122/546feffaaf7959e71e8b45e6/html5/thumbnails/10.jpg)
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
![Page 11: Getting Started With the TFS Object Model](https://reader033.vdocuments.site/reader033/viewer/2022061122/546feffaaf7959e71e8b45e6/html5/thumbnails/11.jpg)
DEMO
![Page 12: Getting Started With the TFS Object Model](https://reader033.vdocuments.site/reader033/viewer/2022061122/546feffaaf7959e71e8b45e6/html5/thumbnails/12.jpg)
IDENTIFY TFS SERVICES
![Page 13: Getting Started With the TFS Object Model](https://reader033.vdocuments.site/reader033/viewer/2022061122/546feffaaf7959e71e8b45e6/html5/thumbnails/13.jpg)
LIST TEAM PROJECTS
Multiple approaches VersionControlServer CommonStructureService ICatalogService
![Page 14: Getting Started With the TFS Object Model](https://reader033.vdocuments.site/reader033/viewer/2022061122/546feffaaf7959e71e8b45e6/html5/thumbnails/14.jpg)
DEMO
![Page 15: Getting Started With the TFS Object Model](https://reader033.vdocuments.site/reader033/viewer/2022061122/546feffaaf7959e71e8b45e6/html5/thumbnails/15.jpg)
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
![Page 16: Getting Started With the TFS Object Model](https://reader033.vdocuments.site/reader033/viewer/2022061122/546feffaaf7959e71e8b45e6/html5/thumbnails/16.jpg)