Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TFS get latest changeset from PROJECT

Status
Not open for further replies.

peac3

Technical User
Jan 17, 2009
226
AU
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.

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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top