{Dynamics CRM Plugins + External assembly} Using external un-signed assemblies in plugin project

Have you ever faced this situation where your plugin or workflow assembly is referencing some utility assembly for which you do not have the code base. Well we had this situation very recently where we were required to refer to some external utility dll to perform some operations.

The problem we had is we did not have the code for the assembly. And for registering the plugin in Dynamics CRM, we need to sign the assembly. So when we were trying to build the assembly, we were getting ‘Referenced assembly does not contain strong name’.

The only way left was to sign the external assembly or load the external assembly dynamically in your plugin code. The second option was not possible since ours was online environment.

Finally after a good amount of search came across the below utility.

http://brutaldev.com/post/NET-Assembly-Strong-Name-Signer

And voila! I was able to sign the external assembly with my plugin strongname key. Attached is the screenshot of the tool.

image

Hope this helps.


Discover more from Debajit's Power Apps & Dynamics 365 Blog

Subscribe to get the latest posts sent to your email.

2 thoughts on “{Dynamics CRM Plugins + External assembly} Using external un-signed assemblies in plugin project”

    1. Hi Jwalin,
      Thanks for reading my post.
      First of all while you reference the external assembly in your plugin project(which is strong named) and try to build the assembly, there would be a build error = ‘referenced assembly does not contain a strong name’. So you would be stopped at the build level only.
      Regards
      Debajit

Comments are closed.

Discover more from Debajit's Power Apps & Dynamics 365 Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading