Customize Team Build 2010 – Part 11: Speed up opening my build process template

Posted on Ewald Hofman See other posts from Ewald Hofman
Published on Fri, 01 Oct 2010 22:13:00 +0100 Indexed on 2010/12/29 18:00 UTC
Read the original article Hit count: 1122

Filed under:
|

In the series the following parts have been published

  1. Part 1: Introduction
  2. Part 2: Add arguments and variables
  3. Part 3: Use more complex arguments
  4. Part 4: Create your own activity
  5. Part 5: Increase AssemblyVersion
  6. Part 6: Use custom type for an argument
  7. Part 7: How is the custom assembly found
  8. Part 8: Send information to the build log
  9. Part 9: Impersonate activities (run under other credentials)
  10. Part 10: Include Version Number in the Build Number
  11. Part 11: Speed up opening my build process template
  12. Part 12: How to debug my custom activities
  13. Part 13: Get control over the Build Output
  14. Part 14: Execute a PowerShell script
  15. Part 15: Fail a build based on the exit code of a console application

 

 


 

When you open the build process template, it takes 15 – 30 seconds until it opens. When you are in the process of creating your custom build process template, this can be very frustrating. Thanks to Ed Blankenship how has found a little trick to speed up the opening of the template. It now only takes a few seconds.

  1. Create a file called empty.xaml and place the following text in it:
    <Activity http://www.edsquared.com/ct.ashx?id=1746c587-59ce-45eb-85af-8ea167862617&url=http%3a%2f%2fschemas.microsoft.com%2fnetfx%2f2009%2fxaml%2factivities">http://schemas.microsoft.com/netfx/2009/xaml/activities">
    </Activity>
  2. Open this file in Visual Studio.
  3. In the toolbox panel, add a new tab called “Team Foundation Build Activities”.  Note that it is important to get the tab name correct because if it is not correct then the activities will be reloaded.
  4. Inside the new tab, right click and select “Choose Items”
  5. Click the Browse button
  6. Load the file C:\Windows\Microsoft.NET\assembly\GAC_MSIL\Microsoft.TeamFoundation.Build.Workflow\v4.0_10.0.0.0__b03f5f7f11d50a3a\Microsoft.TeamFoundation.Build.Workflow.dll
  7. Click OK to add the toolbox items to the tab.
  8. Create another new tab called “Team Foundation LabManagement Activities”.
  9. Inside the new tab, right click and select “Choose Items”
  10. Click the Browse button
  11. Load the file C:\Windows\Microsoft.NET\assembly\GAC_MSIL\Microsoft.TeamFoundation.Lab.Workflow.Activities\v4.0_10.0.0.0__b03f5f7f11d50a3a\Microsoft.TeamFoundation.Lab.Workflow.Activities.dll
  12. Click OK to add the toolbox items to the tab.

You can download the full solution at BuildProcess.zip. It will include the sources of every part and will continue to evolve.


© Ewald Hofman or respective owner

Related posts about Team Build

Related posts about VSTS 2010