Now that we have created a custom activity, we will need to add it to the build template that we copied earlier.
The easiest way to work with build templates is to add the build template to an activity library. Perform the following points to do this:
Add a new Activity Library to the same solution that contains
MyCompany.ActivityLibrary
and call itMyCompany.CustomBuildTemplates
.Remove the
Activity.xaml
file.To get our template from the earlier project to this project, we will need to add an existing item to this solution, and select the
CustomBuildTemplate.xaml
file from the earlier project.Change the Build Action of
CustomBuildTemplate.xaml
to Content (make sure you add a link to the item and not just add it, as then we will need to update our build definition to point to a new template).Add a solution reference to MyCompany.ActivityLibrary.
If you look in the Toolbox, you will now see the ShareBuild
...