Browse by Tags
All Tags »
TFS 2010 »
Team Build 2010 »
TFS (
RSS)
This post is a sequel to a previous post - The TFS Build Definition List<T> OOTB UITypeEditor. In my previous post I showed how easy and cheep it is to use the TFS’s build definition OOTB “List<T>” editor. We even saw that if we use enum’s or Boolean's the “List<T>” editor’s properties grid gives us drop-down editors for them, but what if we want to use more advanced editors; such as the “ServerFileBrowserEditor” to select a project from the source control or the “PlatformConfigurationListEditor...
A while back I came a problem: I needed to build for a client an activity that runs on an unknown number of projects and builds them with DevEnv 2005/2008/2010. I needed to create an editor that allows the user to select projects to be built in DevEnv and additional properties for each project such as “DevEnv version” and “Configuration to build”. The problem was that I had very little time to do this. This is where my good friend Baruch Frei came into the picture; He informed me that when...
As I’ve shown in here , it is easy and productive to use the Microsoft built in “UITypeEditor”s in TFS 2010 build definitions. It is also possible to use them in other WinForms based environments. This is the list as I’ve extracted it from “Reflector”: Type Edited Editors string Microsoft.TeamFoundation.Build.Controls.BuildAgentSelectionEditor string Microsoft.TeamFoundation.Build.Controls.BuildNumberFormatEditor StringList OR List<String> Microsoft.TeamFoundation.Build.Controls.BuildProjectListEditor...
(* – Asterix mark on the parent window) When I built my own custom UI type editor it was fairly easy, and fully functional. There was only one bug: when changing (editing) the object in the custom editor, the build definition window did not indicate to me that I had unsaved changes. Beyond this being extremely annoying, it is also a huge problem because if I close the window I will not know that my changes where not saved (in the case I did not save them). For this example I will use the Credentials...
Lately I’ve created a Custom UI Type Editor for the “Process” Tab in the TFS Build Definition Interface, and came across a problem. Since my object was a bit complex combined with the reason shown here , I decided to use serialization to “Deep Copy” the object. For an example I will use the Credential editor, made originally by “ Ewald Hofman ”. This is the modified code: Credential objet: 1: [Serializable] 2: public class Credential 3: { 4: public string Domain { get; set; } 5: public string UserName...