Friend assembly reference <reference> is invalid

Friend assembly reference <reference> is invalid. Strong-name signed assemblies must specify a public key in their InternalsVisibleTo declarations.

The assembly name passed to the InternalsVisibleToAttribute attribute constructor identifies a strong-named assembly, but it does not include a PublicKey attribute.

Error ID: BC31535

To correct this error

  • Determine the public key for the strong-named friend assembly. Include the public key as part of the assembly name passed to the InternalsVisibleToAttribute attribute constructor by using the PublicKey attribute.

See Also

Tasks

How to: Create Signed Friend Assemblies

Concepts

Friend Assemblies (Visual Basic)

Reference

AssemblyName