Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why use strong named assemblies?

Tags:

c#

.net

What are the advantages of using strong named assemblies?

What are the things that can't be done with a normal assembly?

like image 896
developer Avatar asked Mar 01 '10 05:03

developer


People also ask

Should I strong name my assemblies?

You should strong name your open-source . NET libraries. Strong naming an assembly ensures the most people can use it, and strict assembly loading only affects . NET Framework.

When and why are signing with strong names assemblies are used in unity?

Signing an assembly with a strong name ensures that its name is globally unique. Assemblies with the same strong name are expected to be identical. For example, if you intend to share Unity assemblies among several applications, you can install them into the global assembly cache.

How do you tell if an assembly is strongly named?

You can use the Strong Name tool to determine if the assembly is strongly named. In command prompt you can do this to verify it is a strong named assembly. You can also use Reflector or ILSpy to find the public key token.

What is a strong named DLL?

Strong Key is a naming convention used in computer programming. There can be more than one component (e.g.: DLL) with the same naming, but with different versions. This can lead to many conflicts. A Strong Key (also called SN Key or Strong Name) is used in the Microsoft . NET Framework to uniquely identify a component.


1 Answers

Let me list the benefits of strong naming your assembly first:

  1. Strong naming your assembly allows you to include your assembly into the Global Assembly Cache (GAC). Thus it allows you to share it among multiple applications.

  2. Strong naming guarantees a unique name for that assembly. Thus no one else can use the same assembly name.

  3. Strong name protect the version lineage of an assembly. A strong name can ensure that no one is able to produce a subsequent version of your assembly. Application users are ensured that a version of the assembly they are loading come from the same publisher that created the version the application was built with.

More on strong naming from Microsoft is in Strong-Named Assemblies (MSDN).

like image 137
Kyle Rosendo Avatar answered Oct 04 '22 03:10

Kyle Rosendo