Construct makes an indirect reference to project '<projectname>', which contains '<typename>'

Construct makes an indirect reference to project '<projectname>', which contains '<typename>'. Add a project reference to '<projectname>' to your project.

An expression or statement accesses a type defined in another project, but your project does not have a direct reference to the defining project.

The type could be a class, structure, interface, module, or enumeration.

The project that defines the cited type produces an assembly containing the type. If your project does not directly reference the defining project, then the compiler cannot guarantee that the assembly containing the type is in the solution and available for access.

Error ID: BC31533

To correct this error

  • Determine which project defines the cited type, and add a project reference to it.

See Also

Tasks

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

Concepts

Project References

Other Resources

Referencing Namespaces and Components

Managing References