none
How to access tfs(https://baconator.visualstudio.com/ -online tfs) workitem using C#

    Question

  •  I am using online visual studio and TFS: https://baconator.visualstudio.com/.

    I need to write C# utility which will get data from tfs for various project.

    I am able to access to root folder of tfs using default collection but not able to use subfolder and work item. Please help.

    var

    tfsUri = newUri(@"https://baconator.visualstudio.com/DefaultCollection");

               

    TfsTeamProjectCollectionprojCollection = TfsTeamProjectCollectionFactory.GetTeamProjectCollection(tfsUri);

               

    ICommonStructureServiceIss = (ICommonStructureService)projCollection.GetService(typeof(ICommonStructureService));

               

    ProjectInfo[] ProjInfo = Iss.ListProjects();

               

    WorkItemStoreWIS = (WorkItemStore)projCollection.GetService(typeof(WorkItemStore));

    Thanks,

    Pramod


    pramod

    • Moved by Caillen Saturday, April 25, 2015 7:40 AM
    Friday, April 24, 2015 1:52 AM

Answers

All replies

  • Hi Pramod,

    Visual C# forum is not the correct forum for your question, Visual Studio Online forum or TFS forum is better.

    Thanks for your understanding.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Saturday, April 25, 2015 7:40 AM
  • I'd try them over here.

    https://social.msdn.microsoft.com/Forums/azure/en-US/home?forum=TFService

     

     

     


    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

    Saturday, April 25, 2015 12:49 PM
    Moderator