Compiler Error C3468
Visual Studio 2015
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at 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).
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
Show: