You can use the VersionControlServer.GetChangeset () method from the TFS object model.
You will need to add links to the following assemblies in the GAC:
- Microsoft.TeamFoundation.Common
- Microsoft.TeamFoundation.Client
Microsoft.TeamFoundation.VersionControl.Client
Private Shared Sub Main(ByVal args As String()) Dim tfs As TfsTeamProjectCollection = TfsTeamProjectCollectionFactory.GetTeamProjectCollection(New Uri("http://tfsserver:8080/tfs/CollectionName"), New UICredentialsProvider) tfs.Connect(ConnectOptions.None) Dim vcs As VersionControlServer = tfs.GetService(Of VersionControlServer) Dim changeset As Changeset = vcs.GetChangeset(changeset ID, True, False) End Sub
You can then check the .Changes property to see all the changes made to the changeset.
Grant holliday
source share