Buck Hodges
Azure DevOps (formerly VSTS and Team Foundation Server)
Latest posts
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. Follow me on Twitter at twitter.com/tfsbuck
Perf counters in TFS 11
Jim Szubryt has written a post listing the perf counters available in all versions of TFS and calls out the new ones in TFS 11. Check it out if you are looking at the performance of your server. New Perfmon Counters With TFS 11 Beta Whether you are a small company running TFS or a large Enterprise there may come a time for you too where performance of your TFS system may come into question and you will need to determine what to look at when “TFS seems to be running slow”. You should proactively be establishing a baseline of performance for your environment and Perfmon counters can help. Having...
TFS 11 Beta upgrade: Existing workflows that have custom workflow activities using the TFS client OM
Duat, a developer on Team Foundation Build, has written a blog post on how to resolve post-upgrade issues with your build workflow if your 2010 build workflow uses custom workflow activities that use the TFS client object model. Your custom assemblies need update, or else, redirecting Loading your custom assemblies in the TFS 11 build service process triggers loading TFS 2010 assemblies, and the Workflow Foundation (WF) services are not happy about that. Why? The build process template, for a particular reason, references the TFS OM assemblies by their simple names. When there are more than one version of...
Running only impacted tests in TFS 2010 Build
Richard Hundhausen pointed out this blog post recently, and I thought I’d mention it here. Rob Maher walks through the process of setting up a build definition to run only the tests that involve the code that was changed. TFS 2010 Build - Only run impacted tests If your tests take a long time to run, you may wish to only run the tests that have been impacted by code changes checked in with the build (and of course run a full nightly build that executes all tests :) Unfortunately there is no out of the box feature to do this, so we need to edit our build xaml to do it. more…
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 simple example that uses the version control API. It shows how to create a workspace, pend changes, check in those changes, and hook up some important event listeners. This sample doesn't do anything useful, but it should get you going. You have to supply a Team Project as an argument. The only real difference in t...
Updating a team project to use new features after upgrading to TFS 11 Beta
[UPDATE 3/12/12] Aaron pointed out Ewald's recent detailed blog post that walks through adding optional metadata beyond the MSDN article: http://blogs.msdn.com/b/visualstudioalm/archive/2012/03/06/get-your-agile-project-fixed-after-an-upgrade-from-tfs2010-to-tfs11-beta.aspx. Team Foundation Server 11 Beta can be used to upgrade your existing TFS 2010 or 2008 server and used in production. We’ll be supporting upgrade from TFS 11 Beta to RC (you’ll very likely need to go from Beta to RC to RTM in order to follow the supported path). As Jason said in his beta blog post, TFS 11 beta is &ldquo...
Permission error with creating a team project from VS 2010 on TFS 2012
You must use the Visual Studio Team Explorer 2012 (included in all Visual Studio editions or may be separately downloaded) to create a team project on a TFS 2012 server. If you use VS 2010, you will get an error about not having permission. The error message is very misleading, because it’s not a problem with your permissions.--------------------------- Microsoft Visual Studio --------------------------- TF30172: You do not have permission to create a new team project. --------------------------- OK Help ---------------------------
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 checkins. This sample shows how to use the linking service to convert the work item artifact URIs that are stored with the changesets to get the core work item fields (ID, assigned to, state, type, and title). It will produce output like the following. Id: 352694 Title: Improve performance of q...
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 VersionControlServer objects that our own UI integration (such as the Team Explorer and Pending Changes toolwindow) are using. In this particular case the customer wanted to hook the BeforeCheckinPendingChange event from the VersionControlServer object and take a specific action when that occurred. But the framewo...