Pages

Thursday, 25 July 2013

CRM 2011: Signing the Plug-in Assembly

Only signed plug-in assemblies are allowed to be registered on Microsoft Dynamics CRM 2011.

To sign an assembly with a strong name, it must have a public/private key pair.

The assembly can be signed using
  • Microsoft Visual Studio, OR
  • Strong Name Tool (sn.exe)

Using Microsoft Visual Studio (UI)

Follow these steps to sign the assembly using Microsoft Visual Studio 2010
  1. Right-click the project and click "Properties".
  2. Select "Signing".
  3. Check "Sign the assembly".
  4. Select an existing key or create a new one.
  5. Save the properties.
  6. Rebuild the DLL.

Using Strong Name Tool (sn.exe)

  1. Open Visual Studio 2010 Command Prompt
  2. Run the command, sn -k [filename]

Refer to Microsoft's documentation for more information.

No comments:

Post a Comment