How to set the “default” configuration for a project. 25 June 2013 Donovan-Brown Work (0) Being a Process Consultant specializing in TFS I teach many companies how to use Team Build. When you create a new build definition you have the option to set “Configurations to Build”. However, if you leave that value blank the build will build the “default” configurat... [More]
Team Foundation Build Configuration - HTTP code 500 18 April 2013 Donovan-Brown Work (0) Problem: After adding host headers to my TFS Website in IIS my build server fails to connect with the following error: Solution: Add multipleSiteBindingsEnabled=true to the serviceHostingEnvironment element in the C:\Program Files\Microsoft Team Foundation Server 11.0\Applicat... [More]
Cannot register assembly during Team Build (and I don't want too) 06 February 2013 Donovan-Brown Work (0) Problem: I have a solution that contains a project with the "Make assembly COM-Visible" checked and I get the following error when I attempt to run a team build: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets (3885): Cannot register assembly "C:\Builds\1\TeamProject\Libra... [More]
How to fail a TFS2010 Build from workflow 04 October 2011 Donovan-Brown Work (0) Problem: I have tried setting the BuildDetail.CompilationStatus and BuildDetail.Status but my build keeps Partially Succeeding. Solution: Use the SetBuildProperties activity to set the status to fail.
Build workspace folder already mapped. 03 October 2011 Donovan-Brown Work (0) Problem: My Team Build keeps failing with an error that my source folder is already mapped in another workspace. The path C:\Builds\1\Demo\Reports\Sources is already mapped in workspace 7_1_WIN-GS9GMUJITS8. Solution: Use the tf.exe tool to delete the workspace holding on to that location. Explan... [More]
How to enable code coverage in my Team Build 03 October 2011 Donovan-Brown Work (0) Problem: I am not getting code coverage results in my build. Solution: Ensure you have a test settings file selected in your build definition. Explanation: On the process tab of your build definition expand the Automated Testing section under Basic and make sure the TestSettings File is pointin... [More]
How to Xcopy deploy using TFS 2010/2012 01 August 2011 Donovan-Brown Work (0) Problem I need my VS2010/VS2012 build to perform an “Xcopy deployment” of my ASP.NET application to an existing virtual directory. Solution Customize the build template to use the CopyDirectory activity to copy the ASP.NET application to the virtual directory. Explanation One of the... [More]
I need to build a project that is not supported by MSBuild 15 July 2011 Donovan-Brown Work (0) Problem My solution contains a .vdproj and it is not supported by MSBuild. Solution Call devenv from team build using InvokeProcess for .vdproj projects. Explanation This customization can be extended to build any project types not supported by MSBuild (vb6, power builder, fortran, VC++ 6, etc)... [More]
My build agent just stopped working! 20 June 2011 Donovan-Brown Work (0) Problem My build agent state in Team Foundation Administrative Console states Ready but the icon shows stopped and I can't queue builds. Solution Either log in as the Service Account used to run the build agent or log in using any account and right click on IE and run as the Service Account.1. ... [More]
My build keeps hanging on the psexec call 14 June 2011 Donovan-Brown Work (0) Problem Calling psexec from an invoke process activity on a 2008 Server and it is hanging. Solution Upgrade to 1.98 of psexec and use the -h switch to run with the account's elevated token. Explanation If the target system is Vista or higher, the -h allows the process to get past the UAC that i... [More]