Edit

Share via


Compiler Error C3468

'type' : you can only forward a type to an assembly:

'file' is not an assembly

Only types in an assembly can be forwarded.

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

Examples

The following sample creates a module.

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

The following sample generates C3468.

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