Strictly name three assemblies that reference each other

This is probably very simple, but I'm at a dead end (and I'm nom with C #). I have 3 assemblies that reference each other (for example, register for notification of a delegate method or call a public method), all of which compile until I try to sign them with a strong name. Then I can not compile any of them, since the other two do not have a strong name. What am I missing? I created a strong name file for all three, but I cannot enable snk and compile them.

+4
source share
2 answers

If you created one snk file that you want to use for all three of them, select: Add an existing item from the context menu in projects.

Go to the snk file and select "Add as link" by clicking on the arrow next to the "Add" button.

Then, in the project properties, make sure that on the Signing tab, select the Sign the assembly check box, and then select the key file that you just added to your project.

That should do the trick.

+4
source

A strongly named assembly can only refer to other strongly named assemblies.

When you reference a strong assembly name, you expect to get certain benefits, such as versioning and name protection. If the strong name of the assembly then refers to the assembly with a simple name that does not have these advantages, you lose the benefits that you would gain from having a strong name and return to the DLL conflicts. Therefore, strong assembly names can only refer to other strong names.

Quote from MSDN .

+2
source

All Articles