I want to get date of changeset. The TFS SDK has much reference. Which reference and class do I need?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
One of the best resources I’ve found on the TFS API is this series of blog posts: http://blogs.microsoft.co.il/blogs/shair/archive/tags/TFS+API/default.aspx
In this case, there’s nothing explicitly about getting changeset information (that I saw) but there are a couple of other source-control related posts. From there you’ll see that you need to start by getting a
VersionControlServerinstance, and the MSDN page for that class should get you the rest of the way: callGetChangesetto get a particularChangesetobject, which in turn has aCreationDateproperty.(If you don’t actually know the changeset number you want, you can use methods like
QueryHistoryto get changeset lists for particular paths in the source control database.)