I recently had to put together a list of links to code samples. This isn't even close to comprehensive, but it should help you get going if you are looking for something.
Version Control
- How to Write a Team Foundation Version Control Add-in for Visual Studio
- Team Foundation Version Control client API example (RTM version)
- Displaying the sizes and dates of files in the server
- Displaying the labels on a file, including label comments
- Example usage of VersionControlServer.CreateLabel
- Compare the content changes in a shelveset with any checked-in version
- How to check in changes on behalf of other users
- Sample checkin policy: make sure the comment isn't empty
- How to validate check-in policies, evaluate check-in notes, and check for conflicts
- How to compare (diff) trees at different versions using the API
- My take on this: http://blogs.msdn.com/buckh/archive/2006/04/06/project_diff.aspx
- Robert Horvick’s approach: http://blogs.msdn.com/roberthorvick/archive/2006/04/07/571043.aspx
- Merge history
- Programmatically showing differences between files
- Code snippet: What are my effective permissions {globally, to an item}?
- Show all pending changes on the Team Foundation server older than a given age
- Scanning history for the changesets that had policy override - simple usage of QueryHistory
- Version Control RSS Feed
TFS
- How to get the login dialog when using the Team Foundation Server API
- Listing the process templates on a TFS server
- How to list the users/groups the server knows about
- Code snippet: How to convert an account (DOMAINuser) to its friendly name
- Simple command-line example: listing the team projects on a server
Work Item Tracking
After traveling most of June, and then some in July it’s been hard catching back up but almost…
Abhinaba on Team Build Ticker – Parting Gift.
Brian Harry on TFS Trial Edition and Release Candidate…
Buck Hodges just published on his blog a great list of links for TFS Customization Code Samples. He says…
Bunk Hodge 整理了一個超級詳細的 Sample Code 連結
http://blogs.msdn.com/buckh/archive/2006/08/12/tfs_api_links.aspx…
Hi! I’m not sure if this problem can be solved by a block of code or if there is another way to do this, but any and all help is appreciated.
At our company we have only recently started using Team System for Visual Studio and we are currently also using the Conchango addin for SCRUM V1.0.
The goal is for everyone on the team to use TFS to check in, report etc. However to generate reports for management we need numbers that are not normally displayed in the Team reports. For those not familiar with SCRUM, it proceeds in Sprints which are like iterations if you will. We need to be able to pull out work item history data- creation date, as and when they were updated, hours remaining, etc. We still have not been able to figure how to do that and get that data into Excel except by doing it manually.
Like I said, I’m not sure if this was the right place to post the inquiry…but we could really use the help.
Thank You :)
Rob Caron mentioned that the SDK documentation is now on the MSDN web site.  That SDK documentation…
VMK, does the Task Burndown report in the Samples directory of the following collection of team system reports help?
http://blogs.msdn.com/tompatton/archive/2006/05/07/591713.aspx
Buck
Occasionally the question of whether to use the TeamFoundationServerFactory.GetServer() method or the…
Thank you very much for ->>
Code snippet: How to convert an account (DOMAINuser) to its friendly name