Edit

Share via


Compiler Error C3468

'type': you can only forward a type to an assembly: 'identifier' is not an assembly

Remarks

Only types in an assembly can be forwarded.

For more information, see Type Forwarding (C++/CLI).

Example

The following example creates a module.

// C3468.cpp
// compile with: /LN /clr
public ref class R {};

The following example generates C3468.

// C3468_b.cpp
// compile with: /clr /c
#using "C3468.netmodule"
[ assembly:TypeForwardedTo(R::typeid) ];   // C3468