Buck Hodges

Azure DevOps (formerly VSTS and Team Foundation Server)

How to use the new Custom Controls in Work Item Forms (SP1)

Naren Datha<, a dev who works on the WIT client, has written a post on how to use the new work item tracking custom controls that are introduced in SP1 beta (he previously mentioned some ideas for custom controls).  He provides an overview, details on how to create custom controls, some hints for troubleshooting, and a sample in a zip ...

VC API: CheckIn() may return 0

Back in March, I wrote a post called How to check in changes on behalf of other users.  Among other things, you'll find the documentation comments for the Workspace.CheckIn() method, which you'll notice is now on MSDN.  While that and How to validate check-in policies, evaluate check-in notes, and check for conflicts are ...

Compare the content changes in a shelveset with any checked-in version

I wrote this snippet recently to compare the edited files in a shelveset with an arbitrary checked-in version of the same files.  It's another example of how to use the API to show differences.  See How to compare (diff) trees at different versions using the API for a different example of comparing checked-in files.If you are just ...

How to get the login dialog when using the Team Foundation Server API

Someone asked how to get the login dialog if the user fails to authenticate.  The code to do that is shown below.  I copied the call to the constructor from the basic API example, and I've added code to create and pass a UICredentialsProvider object to the TeamFoundationServer constructor.Also, I'm now calling EnsureAuthenticated().&...

Team Foundation Version Control client API example (RTM version)

[Update 3/10/2012] If you are using TFS 2010 or newer, there is an updated version control client API example.[Update 6/13/06] While the documentation is not what it needs to be, you can find reference-style documentation on a significant amount of the API in the VS SDK (current release is April): http://blogs.msdn.com/buckh/archive/2005/12/09...

Listing the process templates on a TFS server

In response to a forum question about how to list the process templates on the server, Tony Edwards, a developer on Work Item Tracking, posted the following code snippet showing how to do it.  The TeamFoundationServer object provides a number of services, including one for dealing with process templates. Here is  a simple ...

Feedback usabilla icon