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

 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,

April 24th, 2015 1:52am

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.

Free Windows Admin Tool Kit Click here and download it now
April 25th, 2015 3:43am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics