If I try and register a plugin on Associate or Disassociate using the latest version of the toolkit it fails, with no useful error message.
Here's the output for CRM deploy:
Begining CRM Deployment at 10:55
================= Starting Register Plugins and Workflows Task =================
Loading registration information
Successfully loaded registration information
==>Executed Command - RetrieveMultiple : Load Assemblies : duration: 00:00:00.0570722
==>Executed Command - RetrieveMultiple : Load Plug-in's : duration: 00:00:00.1421330
==>Executed Command - RetrieveMultiple : Load Steps : duration: 00:00:00.2813065
Updating Plugin assembly ADSS.Plugins
Deploy or Update operation Failed. Elapsed Time: 00:00:00.7420357
Completed CRM Deployment - Deploy Result: Failed - Ended At 10:55 - Elapsed Time: 00:00:00.9777092
Here's the step I'm trying to register:
<!-- <New Version>--><Plugin Description="Associate All Plugin" FriendlyName="Associate All Plugin" Name="ADSS.Plugins.AssociateAll" Id="00000000-0000-0000-0000-000000000000" TypeName="ADSS.Plugins.AssociateAll"><Steps><clear /><Step AsyncAutoDelete="false" Name="Associate All PreValidate" Description="Associate All PreValidate" Id="00000000-0000-0000-0000-000000000000" ImpersonatingUserId="00000000-0000-0000-0000-000000000000" MessageName="Associate" Mode="Synchronous" PrimaryEntityName="" Rank="1" Stage="PreOutsideTransaction" SupportedDeployment="ServerOnly" MessageEntityId="00000000-0000-0000-0000-000000000000"><Images /></Step><Step AsyncAutoDelete="false" Name="Associate All Post Transaction" Description="Associate All PreValidate" Id="00000000-0000-0000-0000-000000000000" ImpersonatingUserId="00000000-0000-0000-0000-000000000000" MessageName="Associate" Mode="Asynchronous" PrimaryEntityName="" Rank="1" Stage="PostOutsideTransaction" SupportedDeployment="ServerOnly" MessageEntityId="00000000-0000-0000-0000-000000000000"><Images /></Step></Steps></Plugin>
And here's the same step from the crmregister file using the old version of the toolkit:
<!--<Old Version> --><Plugin Description="Plug-in to PreValidateAssociateAll" FriendlyName="PreValidateAssociateAll" Name="BSP.ADS.Plugins.PreValidateAssociateAll" Id="e5c75a94-1973-454f-89ac-10ae566201f5" TypeName="BSP.ADS.Plugins.PreValidateAssociateAll"><Steps><Step CustomConfiguration="" Name="AssociateAll" Description="Pre-Validation of AssociateAll" Id="614f1208-b1f7-e322-8190-00144d001f1e" MessageName="Associate" Mode="Asynchronous" PrimaryEntityName="" Rank="1" SecureConfiguration="" Stage="PostOutsideTransaction" SupportedDeployment="ServerOnly" MessageEntityId="00000000-0000-0000-0000-000000000000"><Images /></Step><Step CustomConfiguration="" Name="AssociateAll" Description="Pre-Validation of AssociateAll" Id="614f1208-b1f7-e322-8190-00144d001f1e" MessageName="Associate" Mode="Synchronous" PrimaryEntityName="" Rank="1" SecureConfiguration="" Stage="PreOutsideTransaction" SupportedDeployment="ServerOnly" MessageEntityId="00000000-0000-0000-0000-000000000000"><Images /></Step></Steps></Plugin>
I can't see anything wrong about the step definition I'm trying to register - the PrimaryEntityName attribute is meant to be empty when you register on Associate/Disassociate. See the step from the previous version of the toolkit.
Am I missing something obvious or is this a bug in the new version?