Registering and Deploying Plug-ins

The first step in plug-in deployment involves registering your plug-in and signing the assembly with a strong name key file. A strong name key is necessary for security so that the assembly can be trusted to execute external code, such as when invoking a web service. To sign your assemblies, follow these steps:

  • In the Solution Explorer, right-click your project and select Properties:
  • Go to the Signing tab and check the Sign the Assembly check box:

Create a new strong name key file by selecting New from the drop-down.

  • Enter a name for the key file, enter a password to protect the strong name key:
  • Click OK to close the dialog, and you see the newly created strong name key added to your project in the Solution Explorer:


To deploy your plug-in, you need to register it. You can do this pro grammatically or using a tool that comes with the CRM SDK called the Plug-in Registration Tool. The Plug-in Registration Tool comes as an application and is located in the SDK\Tools\PluginRegistration folder.


Registering a Plug-in

Registering and deploying plug-ins can be done using the plug-in registration tool. The tool is available in Dynamics 365 SDK. Here’s how to do it:

  • Connect to your organization.

Deploying CRM Plug-ins

If you have access to multiple organizations on the server, choose the one to connect to.

  • Register a new assembly.

registering img 2

  • Browse the assembly file, select Isolation Mode and specify where the assembly is stored.

registering img 3

  • To register a step (and select the entity and event), enter the message Update in the Message field and account in the Primary Entity field.

registering img 4

  • Click Register New Step.
  • Expand the (Assembly) SamplePlugins node and sub-nodes to see the plug-in and step nodes you created. You can now close the tool, but you may want to keep it open until after you test the plug-in and unregister the assembly.

Was this article helpful?

No 0