Hi,
Today we will see some easy steps to manage Unmanaged assemblies.
How to Deploy UnManaged Assembly
Create the assembly containing definitions of the COM types for the Unmanaged assembly using tlbimp.exe. This helps the .NET client to interact with the exposed types.
- Install the generated assembly in the global assembly cache. (Optional)
How to version UnManaged Aseemblies
We can wrap an unmanaged dll inside a managed assembly by adding it as a file of a multi-module assembly. This assembly can be deployed and versioned in the same way as managed assemblies. You can also have a group of unmanaged assembly in a single Assembly.<o:p></o:p>
We can also use the /linkresource option of the compiler to manage the linked resource.
This is very helpful in the scenarios where DllImport() is used to access a function in that file.
If the unmanaged file is loaded by LoadLibrary() outside of DllImport(), we have to use the rules of LoadLibrary(), like the usual unmanaged file use outside the CLR.
Please let me know any querieies, suggestiond or clarification w r t this.
Regards,
VBGuru