Buck Hodges

Azure DevOps (formerly VSTS and Team Foundation Server)

How to validate check-in policies, evaluate check-in notes, and check for conflicts

In the version control API, the CheckIn() method does not evaluate check-in policies and validate check-in notes.  It provides with the ability to supply both an override comment and check-in notes, as applicable, but the evaluation and validation must have been performed prior to calling CheckIn().  The reason for this is that ...

More posts from Tim

Tim Noonan is on a blog-posting roll.  Not long ago, he did quite a bit of work to get better performance in Visual Studio when dealing with large numbers of pending changes, among other things.  Much of the performance improvements came from better use of the ListView: inserting initial items and setting checked states.He'...

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

Tfpt.exe command reference

Attached is a Microsoft Word document containing the documentation for the tfpt.exe power toy commands, including screenshots. [UPDATE 8/9/2007]  I fixed the broken link to the power tools page. [UPDATE 9/9/2006]  TFPT is now available as a separate download (you no longer have to download the massive VS SDK).  You can download ...

TF14107: The changes could not be checked in due to an incompatible change in another workspace

When a rename is checked in, the server paths for other workspaces’ pending adds and branches are updated according to the rename being checked in.  If the server cannot update one or more server paths in the pending adds or branches in other workspaces because it would cause two pending changes to reside at the same server path (...

Registry settings to make VS start up faster

A while back, I wrote a post on how to get better performance from the tf.exe command line.  Today, Tim Noonan, our resident hippie dev from version control land, posted about a couple of registry settings that can help improve the performance of VS with TFS.  The first helps with startup and the second helps with opening solutions. ...