Construct makes an indirect reference to assembly '<assemblyname>', which contains '<typename>'
TOC
Collapse the table of content
Expand the table of content
The document is archived and information here might be outdated

Construct makes an indirect reference to assembly '<assemblyname>', which contains '<typename>' 

Error Message

Construct makes an indirect reference to assembly '<assemblyname>', which contains <typename>. Add a file reference to <filename> to your project.

An expression uses a type, such as a class, structure, interface, enumeration, or delegate, but your assembly does not have a project reference to the assembly defining the type.

Error ID: BC31528

To correct this error

  • In your project properties, add a reference to the file containing the assembly that defines the type you are using.

See Also

Show:
© 2016 Microsoft