How to: Add Native DLL to Global Assembly Cache


For the latest documentation on Visual Studio 2017, see Visual Studio 2017 Documentation.

You can put a native DLL (not COM) into the Global Assembly Cache.

/ASSEMBLYLINKRESOURCE lets you embed a native DLL in an assembly.

For more information, see /ASSEMBLYLINKRESOURCE (Link to .NET Framework Resource).


Using C++ Interop (Implicit PInvoke)