How to: Add Native DLL to Global Assembly Cache

 

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 How to: Add Native DLL to Global Assembly Cache.

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).

/ASSEMBLYLINKRESOURCE:MyComponent.dll  

Using C++ Interop (Implicit PInvoke)

Show: