0

Code for getting TFS projects in combobox:

        var tfs = TfsTeamProjectCollectionFactory.GetTeamProjectCollection(_tfs.Uri);
        var vsStore = tfs.GetService<VersionControlServer>();
        var projects = vsStore.GetItems("$/" + _selectedTeamProject.Name + "/*");
        ClearProjectItems();
        foreach (var project in projects.Items)
        {
            var projectItem = project.ServerItem.Replace("$/" + _selectedTeamProject.Name + "/", "");
            cmbProjects.Items.Add(projectItem);
        }

Now, I want to get the iteration paths for the selected project in TFS programatically. The Iteration paths will be binded in another combobox.

Earth
  • 3,477
  • 6
  • 37
  • 78

1 Answers1

-1

You need to use the Common Structure service.

http://blogs.microsoft.co.il/shair/2009/01/30/tfs-api-part-9-get-areaiteration-programmatically/