Hi guys,
I am looking for a code to get the latest changeset from TFS API.
I know how to do it within the team collection but I am struggling to find within the project.
Try to do like above but there is no luck.
Appreciate if any of you guru can help on this.
Thanks.
I am looking for a code to get the latest changeset from TFS API.
I know how to do it within the team collection but I am struggling to find within the project.
Code:
result.ChangesetId = vcs.QueryHistory(
@"$\CornerStone",
VersionSpec.Latest,
0,
RecursionType.Full,
String.Empty,
VersionSpec.Latest,
VersionSpec.Latest,
1,
false,
true)
.Cast<Changeset>()
.Single()
.ChangesetId;
Try to do like above but there is no luck.
Appreciate if any of you guru can help on this.
Thanks.