Groups | Blog | Home
all groups > dotnet setup > august 2003 >

dotnet setup : DLL Install to GAC


Perecli Manole
8/29/2003 7:06:19 PM
I have a .NET DLL that I want to expose through COM and .NET. In order to
expose it to COM I had to give it a strong name and register it with the GAC
through an application install procedure. In the "File System on Target
Machine" I added a special folder "Global Assembly Cache Folder" and placed
my DLL assembly there. This works great for COM access. The dll appears as a
selectable resource. However this does not work for .NET clients. The DLL
does not appear as a selectable resource under .NET and although I can
brouse for it in the GAC I can't add the reference. So what am I supposed to
different in the install to make my DLL available to .NET consumers?

Thanks
Perry

Phil Wilson
8/30/2003 10:24:49 AM
It's not true that you must put the DLL in the GAC to expose it to COM
clients. You can do the equivalent of running regasm with the /codebase
switch, which lets you put it in an application folder.
--
Phil Wilson [MVP Windows Installer]

[quoted text, click to view]

Ciprian Jichici
8/30/2003 11:25:48 AM
Hello,

As far as I konw, in order to make it available to .NET consumers you need
to install your assembly in a 'normal' folder too, in addition to the GAC.

If you want your assembly to appear in the Add references list in VS.NET,
you can add a new key under the
HKLM/SOFTWARE/Microsoft/.NETFramework/AssemblyFolders registry key. The key
must contain only a default whoose value is the folder where the assembly is
located.

Hope this helps,
Ciprian

[quoted text, click to view]

AddThis Social Bookmark Button