How to connect to TF Service without a prompt for LiveID credentials

Normally when you connect to the Team Foundation Service you are presented with a web page to log in with your Microsoft Account (aka LiveID). When you log in you can choose to have it remember you and you won’t have to enter your Microsoft Account credentials again (unless you don’t log in again for…

49

Standalone installer for the TFS client object model

[UPDATE 12/13/12] The TFS 2012 Object Model Installer is now available for download. This past week we released an installer for the Team Foundation Server 2010 SP1 client object model.  Up to this point the only way to get it was to install Team Explorer.  For folks writing tools that access TFS, this was a…

23

TFS 11: API for teams and understanding burn down charts

Ivan Popek has been spending a lot of time lately digging into TFS 11.  He has written a series of posts on the APIs for teams in TFS 11, and he explains the burn down chart trend lines. TFS11 API: Query Teams and Team Members TFS11 API: Reading the Team Configuration – Iterations and Areas…

0

Team Foundation Version Control client API example for TFS 2010 and newer

Over six years ago, I posted a sample on how to use the version control API.  The API changed in TFS 2010, but I hadn’t updated the sample.  Here is a version that works with 2010 and newer and is a little less aggressive on clean up in the finally block. This is a really…

51

Listing the work items associated with changesets for a path

Philip wrote a simple app to list the work items associated with the changesets for a given path, and it’s in some ways an enhanced update of Naren’s post. Given an URL to a collection and a server path (e.g., $/myproject/coolthing), it will list the work items that are associated with the most recent 25…

5

How to get the TFS objects used in our own UI integration

Philip, a dev on version control, recently helped with a question on how to get the TFS objects we use in our UI.  I thought I’d post since others may find it useful. We recently had a request from a customer for a VS add-in that would be able to access the same TfsTeamProjectCollection and…

3

How to subscribe to checkins not under a particular path

Nick Kirchem, who works on the TFS web access team, recently answered a question on how email subscriptions on checkin alerts.  The question was, how do I subscribe to checkin alerts not under a particular folder? Here’s how to do it. bissubscribe /eventType CheckinEvent /address someone@domain.com /deliveryType EmailHtml /server http://myserver:8080/tfs/DefaultCollection "’Artifacts/Artifact[@ArtifactType=\"VersionedItem\"][not(starts-with(translate(@ServerItem, \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\", \"abcdefghijklmnopqrstuvwxyz\"), \"$/devdiv/feature/build/qa\"))]’ <>…

3

How to distribute custom checkin policies and work item controls using the power tools

Custom checkin policies and custom work item controls are great ways to take advantage of the extensibility of TFS.  You can use checkin policies to enforce certain standards on checkins (even in your builds).  Custom work item controls allow you to add controls to your work item forms that present data in particular way, access other…

6

Team Foundation 2010 SDK published

Allen Clark has announced the publication of the first release of the TFS 2010 SDK.  This represents a significant improvement in the documentation for the TFS API, and he will be releasing updates to it on a recurring basis.  The first release is small (relative to the size of the TFS API), but it will…

0

Posts on using the new team project collection APIs

Taylor Lafrinere, a developer on Team Foundation Server who wrote a significant part of the new core server infrastructure APIs, has written a series of posts explaining some of the different parts.  If you have other parts of the API that you are interested in, be sure to leave a comment on one of his…

0

How to see the TFS server calls made by the client

Back in 2006 I wrote a post about a performance dialog that lets you see all of the calls made by the client.  It works with Visual Studio (devenv.exe), TFS command line (tf.exe), TCM command line (tcm.exe), Test Manager (mtm.exe), etc. It’s still in the product in 2010, and it’s as useful as ever if…

1

TFS client API changes from Beta 2 to RC

While I don’t have a comprehensive list, I do want to point out these four changes in particular because these classes are fundamental to the API.  If you have written code with the Beta 2 client API, here are the changes you will need to be aware of to use the RC client API. TeamFoundationServerBase…

6

Deep dive on Windows Workflow 4.0 activities

Patrick Carnahan is a developer on TFS Build, and he’s written a series of detailed posts on how to write custom activities in Windows Workflow 4.0 (WF), which is now used to orchestrate the build process for TFS Build in 2010.  It’s a deep dive on WF activities.  Jim Lamb’s post on how to integrate…

2

Why the CheckInEvent doesn’t list all of the files in a changeset

I recently received a question from someone about the CheckInEvent. We subscribe to the Notify event using the BisSubscribe tool. Basically we have many applications that share some projects, but as TFS has no mechanism for sharing we have written our own in house app. We have hooked into Notify for the CheckInEvents and we…

2

Team Foundation Build 2008 API documentation

The documentation for the team build 2008 object model is now available as a CHM file.  Later this year, I’m told that the MSDN web site will be updated. http://download.microsoft.com/download/5/f/8/5f872c2e-4221-410b-b86e-4c3cd831b0c4/Team Foundation Build Managed Reference.chm After you download it you will need to right click it, choose Properties, and then select “Unblock” before you can view…

6

Updated post on how to filter checkin emails by paths

I’ve made a significant update to the following post: Adding a path filter to a CheckinEvent subscription using bissubscribe.  The reason is that the paths supplied by the server aren’t consistently cased while XPath is case-sensitive.  The result is that your subscriptions that filter based on paths will not work reliably without additional complexity, unfortunately….

1

Martin Woodward’s presentation on what’s new in TFS 2008

Martin Woodward has a posted a great set of slides from a presentation he did on what’s new in TFS 2008.  After going through all of the features other than build, he spends more than half of the slides on the build features of TFS 2008 (aka Team Build).  I highly recommend taking a look…

3

How to list the team projects created with a particular template in TFS 2008 or 2010

This question came up on an internal discussion, and I thought the answer would be useful to post. Question How we can find the list of projects created with the a particular VSTF template in TFS 2008 or 2010? In TFS 2005 we can find out programmatically as well with the query but in the new…

3

TFS API: Determining if an edited file has changed

A few times over the last several months, the question has come up regarding how to determine whether a file on disk that is being edited is different that what is checked into TFS version control.  Folks looking at the PendingChange object have asked about the difference between the two hash value properties. If you query…

1

TFS 2008: Calling custom targets and documentation for the beta 2 object model

Aaron Hallberg has a written a great post on one of the new extensibility mechanisms we’ve added to the Microsoft.TeamFoundation.Build.targets file that forms the backbone of the msbuild process (it’s imported by every tfsbuild.proj file and contains all of the targets and properties).  Aaron shows you how to have a different target called for each…

2