In TFS2008, deleting a build removes it from the database itself. If you delete a build called build_20110423.1 or 1.0.0.1 from build Explorer and trigger the build again then you'll see That new builds starts with same number (build_20110423.1 or 1.0.0.1) and not with an incremental number (build_20110423. 2 or 1.0.0.2). But, it doesn ' t work the same-in TFS2010.
I queued a build in TFS2010 which got failed with build number 1.0.14.0 due to compilation errors.
I wanted to reuse the same build number. So, I has deleted the build from build Explorer by checking all the available options.
Triggered the build again but it got failed with error tf42064:the Build number ' 1.0.14.0 ' already exists for Build Defin Ition.
This was because in TFS2010 if you delete the builds, it's only gets marked as deleted in the database so that it doesn ' t s How up in the UI anymore. To get rid of the This build completely actually has to Destroy it using tfsbuild Destroy Command which is added in TFS2010.
Open the Visual Studio command Prompt and you can run the tfsbuild destroy command in below mentioned syntax.
c:\windows\system32>TFSBuild destroy/collection:http://tfsserver:8080/tfs/defaultcollection/ Builddefinition: "Teamproject\builddefinitionname" BuildNumber 1.0.14.0
No builds found for build specification ' BuildNumber '.
Destroy build record for 1.0.14.0 permanently? (Yes/no/all) Yes
Destroying 1.0.14.0 ... Done
I queued the build again and now the build succeeded with 1.0.14.0 build number.
Tf42064:the build number already exists for build definition error in TFS2010