How can I copy a TFS 2010 Build Definition?
Is there any way to copy a build definition? I work in a mainline source control methodology which utilizes many different branches that live for very short periods (ie. a few days to a week). I'd really like to copy a build template and just change the solution to build. Is there any way to do this? You can write an add-in to do it. Here's the code to copy an existing build definition: static IBuildDefinition CloneBuildDefinition(IBuildDefinition buildDefinition) { var buildDefinitionClone = buildDefinition.BuildServer.CreateBuildDefinition( buildDefinition.TeamProject); buildDefinitionClone