Trying to branch
Hello
I am trying to code with the VS2005 SDK(TFS part ) but its not going the way I wanted it to.
The documentation is still very poor and most objects don't have any documentation.
The examples area is also slim.
If anyone has examples or links on how to checkin\out\branching it would be great.
Thanks
Avi
Branch, Checkout, Checkin, etc. are all methods of the Workspace object. Here's an example: http://blogs.msdn.com/buckh/archive/2006/03/15/552288.aspx
Thanks
I saw the "PendBranch" function but I am searching for an example on that specific subject.
We seem to have some probkems with the params
Thank
Avi
How are you calling the method?
Here's the simplest overload.
public int PendBranch(String sourcePath, String targetPath, VersionSpec version)
You could call it as follows.
workspace.PendBranch(@"c:\source", @"c:\target", VersionSpec.Latest)
or
workspace.PendBranch("$/MyProject/Rel1.0", "$/MyProject/Rel1.1", VersionSpec.Latest)
Buck
Thanks for the post
How come there are so few examples using the vs2005 sdk ?
The few one i've found uses the tf.exe
Avi
very frustrating indeed!
in the drive to shorten time-to-market, i guess quality slipped to the bottom of their list of priorities.
let's face it, vs2005, sql 2005, team foundation, these stuff are all part of a rushed job. because MS has to ship something to compete with java etc.
i've heard too many complaints about the sluggish ui of vs2005, and poor (if any) documentation of tf. even for asp.net 2.0, they got it wrong and shipped a brand new compilation system that so many corporate departments find annoying rather than helpful, so scott guthrie had to pull a few allnighters to ship a webapplication addon, what a shame.
TF is fully documented and has been since long before we shipped: http://msdn2.microsoft.com/en-us/cc31bk2e.aspx
The two most recent releases of the SDK have complete documentation, and as of September it's also on MSDN:
http://msdn2.microsoft.com/en-us/library/aa398956.aspx
http://blogs.msdn.com/buckh/archive/2006/09/08/tfs_api_docs.aspx
We've also posted a ton of samples: http://blogs.msdn.com/buckh/archive/2006/08/12/tfs-api-links.aspx
Thanks very much for the links Richard, however:
1. http://msdn2.microsoft.com/en-us/cc31bk2e.aspx
pretty good indeed, but these are documentation on TF rather than the TF client API
2. http://msdn2.microsoft.com/en-us/library/aa398956.aspx
i got a single page with some general descriptions but no links, and it doesnt synchronize with the TOC treeview on the left.
i know all the classes/methods in TF client API are documented somewhere in MSDN online, and i actually found a few of them, but the level of detail is, well, no detail at all. Most of these documents provide zero value-add. I can guess what a parameter means by looking at its name, a document should go much furhter than repeating a parameter or method's name right?
3. http://blogs.msdn.com/buckh/archive/2006/09/08/tfs_api_docs.aspx and http://blogs.msdn.com/buckh/archive/2006/08/12/tfs-api-links.aspx
These 2 blog entries are by far the most useful to me, but i guess you can't say, hey, for real documentation of TF client API, just go reading these blogs.
Personally, I think that this trend of using blogs to cover poor documentation is very very bad, it encourages developers to be sloppy rather than following a rigorous quality standard.