Purpose of strong naming assemblies is to create unique identity for desired assembly. You would typically want to do that when you need multiple versions of same assembly to be used, when assembly must be installed inside GAC (global assembly cache) or when you want assemblies to be to be referenced by strongly named assemblies.
What does it mean to be strongly named?
Strongly named assemblies are assemblies that have:
Name (usually name of project)
AssemblyVersion (AssemblyVersion information)
Culture information (Assemblies are usually culture neutral but if you wish to change them you can access AssemblyInfo.cs file and change AssemblyCulture attribute)
Private/Public key token (main difference between strongly named assemblies and weakly named assemblies)
I wish to create strongly named assemblies! What do i do?
First you would create a project. That first step would create weakly named assembly. Next what you want to do is sign it. There are multiple ways to achieve this.
From Visual studio:
- Right click project
- Select Signing tab
- Check “Sign the assembly” CheckBox
- From Drop-down control select New
- Input necessary Information
- Select Drop-down control again and find your .pfx file
Now when we know how to strong name assemblies we can continue to part on how to put an assembly in the global assembly cache.