Friend assembly reference <reference> is invalid

 

Updated: July 20, 2015

For the latest documentation on Visual Studio 2017, see Visual Studio 2017 Documentation.

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

  1. 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.

AssemblyName
Friend Assemblies
How to: Create Signed Friend Assemblies

Show: