In an old post I spoke about a simple routine to copy queries between iterations in TFS, now it is time to show the code, behind this simple command. Everything is really simple, the first step is creating a connection with the TFS server and retrieve a reference to QueryHierarchy object 1: string userName = [...]
Sometimes you need to operate to a Tfs Version Control System with API starting from a local folder. There are a lot of API to work with workspaces, but the main problem is that you need to pass through a VersionControlServer object, and to obtain such an object you need to know the address of [...]
Continue reading about How to get TFS server address from a local folder mapped to a workspace
Today my dear friend Matteo asked me some help with a snippet of code to insert a WIT into a TFS. The snippet was the following one. 1: Dim tfs As New TeamFoundationServer("http://tfs2010test:8080/tfs/defaultcollection", 2: New NetworkCredential("Administrator", "xxxxxxxx")) 3: Dim wis As WorkItemStore = DirectCast(tfs.GetService(GetType(WorkItemStore)), WorkItemStore) 4: Dim teamProject As Project = wis.Projects(0) 5: Dim witype [...]
