Assembly file numbering during a Continuous integration build is one of the most interesting feature in a project, but sometimes we need also to generate numbers even for local build, especially if the user can launch some script to do a local compile and use it to deploy somewhere. Major and Minor number in an [...]
Continue reading about Insert name of the user in assembly file number
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
With Tfs Build you have a great flexibility on how to execute your unit tests. First of all you can decide to execute only tests of a certain category, or with a certain priority, but one of the most interesting feature is the ability to execute them in another machine with the helps of a [...]
Continue reading about Executing Test in a test agent during a build
If you look at the previous post, I answered a little problem that can occur when saving a Work Item in TFS with API. A common question that arise from people when they begin to work with the WIT api is “how can I make possible for users of my application to edit a WIT?†[...]
Continue reading about Edit properties of a Work Item with API
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 [...]
