Now this is one problem that we face when we use a 3rd party DLL, which is not-strongly named & we still want to dump it to GAC.

So, lets see the 5-step solution:

  1. Go to Visual Studio Command Prompt
  2. Generate a Strong Name Key File
    sn -k keyPair.snk 
  3. Obtain MSIL for the assembly
    ildasm Assembly.dll /out:Assembly.il 
     
  4. Rename the original assembly
    ren Assembly.dll Assembly.dll.old 
     
  5. Create a new assembly from MSIL & Key File
    ilasm Assembly.il /dll /key= keyPair.snk 
The new Assembly is a strong-named assembly.