Delen via


Type '<typename>' in assembly '<assemblyname1>' has been forwarded to assembly '<assemblyname2>'

Type '<typename>' in assembly '<assemblyname1>' has been forwarded to assembly '<assemblyname2>'. Either a reference to '<assemblyname2>' is missing from your project or the type '<typename>' is missing from assembly '<assemblyname2>'.

An expression in the source code for an assembly refers to a type that has been forwarded to another assembly, but the type cannot be found in the destination assembly.

Type forwarding means reassigning the definition of a class, structure, interface, delegate, or enumeration to an assembly other than the one in which it was originally defined. It is often used in conjunction with code refactoring, by which you split an assembly into two or more assemblies or move code from one assembly to another.

Although the type is temporarily still available in the original assembly, it is likely to become undefined when code refactoring removes it from the original assembly.

Error ID: BC31424

To correct this error

  • Make sure the type is present in the destination assembly.

  • Make sure your project has a reference to the destination assembly.

See Also

Tasks

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

Concepts

Project References

Reference

Type Forwarding

TypeForwardedToAttribute