Project '<projectname>' makes an indirect reference to assembly '<assemblyname>' which contains '<classname>'

Project '<projectname>' makes an indirect reference to assembly '<assemblyname>' which contains '<classname>'. Add a reference to '<assemblyname>' to your project.

This project contains members that depend on an assembly that is not contained in the project references.

Error ID: BC31515

To correct this error

  • Add a reference to the assembly by right-clicking References in the Solution Explorer and then clicking Add Reference.

See Also

Tasks

How to: Add or Remove References in Visual Studio (Visual Basic)

Concepts

Project References