Showing results for TFS API - Buck Hodges

Oct 3, 2006
Post comments count0
Post likes count0

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

Buck Hodges
Buck Hodges

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 file ...

Team Foundation ServerTFS APIWork Item Tracking
Sep 18, 2006
Post comments count0
Post likes count0

VC API: CheckIn() may return 0

Buck Hodges
Buck Hodges

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 probably the...

Team Foundation ServerSource ControlTFS API
Sep 8, 2006
Post comments count0
Post likes count0

TFS API documentation is now on the MSDN web site

Buck Hodges
Buck Hodges

Rob Caron mentioned that the SDK documentation is now on the MSDN web site.  That SDK documentation includes the Team Foundation Server API documentation.  Last year I pointed out where to find the version control documentation in the massive download that is the VS SDK, but you don't need to do that now.So, the good news is that the docu...

Team Foundation ServerSource ControlTeam Build
Aug 12, 2006
Post comments count0
Post likes count0

Links to code samples

Buck Hodges
Buck Hodges

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 TFS Work Item Tracking

Team Foundation ServerSource ControlTFS API
Aug 12, 2006
Post comments count0
Post likes count0

Getting Changeset objects from associated work items

Buck Hodges
Buck Hodges

On internal mailing list, someone asked how to do this, and I thought it's worth sharing.  You can get a Changeset object using its artifact URI (aka link) via VersionControlServer.ArtifactProvider.  Here’s how that would look like, based on modifying code from James Manning’s blog posthttp://blogs.msdn.com/jmanning/archi...

Team Foundation ServerSource ControlTFS API
May 1, 2006
Post comments count0
Post likes count0

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

Buck Hodges
Buck Hodges

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 getting...

Team Foundation ServerSource ControlTFS API
Apr 6, 2006
Post comments count0
Post likes count0

How to compare (diff) trees at different versions using the API

Buck Hodges
Buck Hodges

Recently the question of how to compare files and folders came up.  TFS version 1 doesn't have the project difference type of functionality that was available in VSS.  So if you want to write your own, this code sample will help you with the calls to get the information you'll want to display. The code shows two different approa...

Team Foundation ServerSource ControlTFS API
Mar 17, 2006
Post comments count0
Post likes count0

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

Buck Hodges
Buck Hodges

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 ServerSource ControlTFS API
Mar 15, 2006
Post comments count0
Post likes count0

Team Foundation Version Control client API example (RTM version)

Buck Hodges
Buck Hodges

[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/5021...

Team Foundation ServerSource ControlTFS API
Feb 24, 2006
Post comments count0
Post likes count0

Listing the process templates on a TFS server

Buck Hodges
Buck Hodges

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 console pro...

Team Foundation ServerTFS API