Everything you want to know about Visual Studio ALM and Farming
Brian Harry is a Microsoft Technical Fellow working as the Product Unit Manager for Team Foundation Server. Learn more about Brian.
More videos »
We are working on improving the TFS SDK to make it easier for people who want to write extensions. There are many areas for improvement so it's hard to pick a place to start. We chose, for the first project, a sample VS add-in that demonstrates a pretty wide array of ways in which you can integrate with TFS, inside VS. It includes the sample VS add-in infrastructure, examples of invoking the TFS API, querying selection and receiving events.
This sample is focused on version control and we are working on another one more targeted at work item tracking. It is not intended to be a useful tool in and of itself, but rather a demonstration of how to access each of these extensibility points. I've included a screen shot below that shows that it's just a dialog with a bunch of buttons that allows you to exercise the various extensibility points. Accompanying the sample is a pretty thorough document outlining how to use it and what it is doing.
We are still finalizing the sample but I'm interested in getting early feedback on it. I've attached a zip file with the sample in it to this blog post. If you have the inclination, try it out and let us know if it is something that is useful to you or if there is something you'd really like us to add or change. I'm expecting we will publish an official "final" version in the next few weeks.
Thanks,
Brian
PingBack from http://blog.a-foton.ru/2008/07/working-on-tfs-sdk-improvements/
Nice samples. The simplicity of them is very nicely done while still demonstrating core functionality.
Keep up the great work.
Looks very helpful. When you get to the work item tracking, the big story we have here is to keep track of estimates and burn down and push that data to another application that tracks our time. Development wants to use TFS, but business managers want to run time reports from our current system.
Brian Harry on Working on TFS SDK improvements The Developer Support Team Foundation Server on Fun with...
http://blogs.msdn.com/bharry/archive/2008/07/09/working-on-tfs-sdk-improvements.aspx is your first stop
nice simple and explaining examples.
however, Changeset.Changes always returns 0 (2008, SP1), so I cannot iterate through the items.
possible bug?
Flo, it depends on how you get the Changeset object. If you don't specify that you want the changes in the changeset, it will have a zero-length array. This was done for scale. We found that there were many cases where folks wanted the changeset metadata (comment, etc.) but not the actual changes, so it reduced load on the server not to return them unless requested.
Buck
Buck, thanks for the fast description.
Class VersionControlExt only provides this one method FindChangeset() without parameters for retrieving changesets. Whats the other way you mentioned to get the actual changes? Any hints appreciated,
best regards
I found a boolean flag in QueryHistory(...) which returns full changeset information
:)
The link to TFSAddin.zip doesn't seem to work.
Is this example still relevant to TFS 2010? Were there any breaking changes that affect this?
I believe there were some small breaking changes but the vast majority of the sample is still relevant. I seem to recall it getting updated but I'll check.