locked
Custom activity displaying error message in BuildProcessTemplate RRS feed

  • Question

  • I have just created a custom activity and registered the location of my assembly in source control with my Build Controller Agent.  As part of my sample Visual Studio project, I created a test WWF project which contained my custom workflow and activities.  After all was tested, I copied the test WWF project and checked it into the Build Process Templates directory.  While executing the build, the build runs just fine including the execution of the custom workflow activity.  However, when I proceeded to open the BuildProcessTemplate directly on the TFS Build Server through Visual Studio, I received a Red Errror Message when attempting to display the custom activity in my Build Workflow.  Therefore, I am not able to alter the properties for this custom workflow activity in my Build Process Template even while opening it directly on the Build Server.

    Is there a way for me to view the BuildProcessTemplate on the TFS Build Server without displaying this error message for the custom activities I have created?

    Thanks.

    Monday, November 29, 2010 7:43 PM

Answers

  • The error occurs because Visual Studio can't locate the custom activities on the build server. If you want to open a build process template that uses custom activites isolated (e.g. not in a solution where you are referencing the custom activity projects), you need to register the custom activity assemblies to the GAC.

    But why do you want to open the build process template on the build server? Any changes done to the build process template must be checked in to source control, you can't modify the build process template locally on the build server and then run it again.

    /Jakob


    Blog: http://geekswithblogs.net/jakob Twitter: http://twitter.com/osirisjakob
    • Marked as answer by vs2015junkie Tuesday, November 30, 2010 2:35 PM
    Monday, November 29, 2010 7:52 PM