Linker Tools Error LNK1302
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 Linker Tools Error LNK1302.
only support linking safe .netmodules; unable to link file .netmodule
A .netmodule (compiled with /LN) was passed to the linker in a user attempt to invoke MSIL linking. A C++ module is valid for MSIL linking if it is compiled with /clr:safe.
To correct this error, compile with /clr:safe to enable MSIL linking, or pass the /clr or /clr:pure .obj file to the linker instead of the module.
For more information, see
Show: