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

by Ewald Hofman 1. October 2010 13:13

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 
  16. Part 16: Specify the relative reference path 

 

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 xmlns="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.

Tags:

Team Build | VSTS 2010

Comments

10/21/2010 7:15:37 PM #

geoff

I have tried this a number of times. but after a build of my custom code it always takes its time reloading those two tabs in the toolbox. It takes an average of 20 seconds and is painfully annoying. This seems like a bug in vs since loading it manually is instantaneous.

geoff United States |

11/9/2010 5:32:37 AM #

trackback

Part 14: Execute a PowerShell script

Part 14: Execute a PowerShell script

Ewald Hofman |

11/10/2010 9:14:29 AM #

pingback

Pingback from blogs.like10.com

TechDays 2010 Presentations « Microsoft Team Foundation Server, SharePoint Server, .NET, and SQL Server

blogs.like10.com |

12/17/2010 12:43:40 AM #

Grace

I am planning to buy Visual Studio to speed up the building of process template. Is this a good software for this purpose ? I want to use it in the way you said but I am not very sure if it deserves its price.

Grace United States |

1/3/2011 1:48:24 AM #

herbi

This is not working for me.

I get the following build error (and also the template is not opening faster):
The XAML MSBuild task only processes files that contain an '{http://schemas.microsoft.com/winfx/2006/xaml}Class' directive. Please refer to documentation for usage of ‘{http://schemas.microsoft.com/winfx/2006/xaml}Class’.


thanks, herbi

herbi Austria |

3/27/2011 9:25:59 AM #

zoleliu arbata

Yes, now I know how to build this template, THANK YOU!!!!

zoleliu arbata Lithuania |

5/31/2011 8:22:16 AM #

trackback

Ewald’s posts on TFS Build 2010

Ewald Hofman , an ALM MVP, has written a great series of blog posts on Team Build in Team Foundation Server 2010.  The 2010 release introduces Windows Workflow as the overall orchestrator of the build process.  Ewald walks you through quite a few topics related to this and the other new features.  Check it out! Part 1: Introduction Part 2: Add arguments and variables Part 3: Use more complex arguments Part 4: Create your own activity Part 5: Increase AssemblyVersion Part 6: Use custom type for an argument Part 7: How is the custom assembly found Part 8: Send information to the build log Part 9: Impersonate activities (run under other credentials) Part 10: Include Version Number in the Build Number Part 11: Speed up opening my build process template Part 12: How to debug my custom activities Part 13: Get control over the Build Output Part 14: Execute a PowerShell script Part 15: Fail a build based on the exit code of a console application Part 16: Specify the relative reference path Technorati Tags: tfs 2010 , team build , windows workflow

Buck Hodges |

10/27/2011 6:18:10 PM #

pingback

Pingback from justaprogrammer.net

Continuous Integration with TFS2010, MSDeploy & VSDBCMD « Just A Programmer

justaprogrammer.net |

2/20/2014 10:51:00 PM #

pingback

Pingback from blogtrickszone.com

Become a perfect blogger2500 do-follow blogs List » Become a perfect blogger

blogtrickszone.com |

Comments are closed

Powered by BlogEngine.NET 1.6.1.0
Theme by Mads Kristensen


ClusterMap

Statistics

Statistics created at 09 Sep 2009

121 posts
488 comments
324 raters
1861610 visit (1042 per day)
17 users online

Recent comments

Comment RSS