none
TFS Code migration from old to new how to do? RRS feed

  • Question

  • I have TFS code old version, i need to migrate into new version dont know how to do.

    this is in old code :

    var collection =TfsTeamProjectCollectionFactory.GetTeamProjectCollection(new Uri("http://8080/));

    new code using but not getting same result collection:

    VssConnection connection = new VssConnection(new Uri(collectionUri), new VssCredentials()); // Create instance of WorkItemTrackingHttpClient using VssConnection WorkItemTrackingHttpClient witClient = connection.GetClient<WorkItemTrackingHttpClient>(); // Get 2 levels of query hierarchy items List<QueryHierarchyItem> queryHierarchyItems = witClient.GetQueriesAsync(teamProjectName, depth: 2).Result; // Search for 'My Queries' folder QueryHierarchyItem myQueriesFolder = queryHierarchyItems.FirstOrDefault(qhi => qhi.Name.Equals("My Queries"));

    Saturday, October 12, 2019 4:14 PM

All replies

  • Hi Pooja-P, 

    Thank you for posting here.

    According to your description, your issue is more related to TFS. Therefore, it will be more appropriate to ask your question in TFS Forum.

    The C# forum is for C# related question, we discuss and ask the C# programming language, IDE, libraries, samples and tools here.

    Thank you for your understanding.

    Best Regards,

    Xingyu Zhao


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Monday, October 14, 2019 7:35 AM