Is there a way to install an Assembly into the GAC and leave it in the [TARGETDIR] after the install completes?
I develop cusom controls that are used by the Visual Studio .NET 2003 IDE. These controls get compiled to a .DLL, of which I place into the .NET GLobal Assembly Cache (GAC) via the AI Assemblies interface.
In order for my control to appear in the VS.NET 2003 IDE Add References dialog, I must add some entries to the Windows Registry (HKLM):
Software\Microsoft\.NetFramework\AssemblyFolders\MyAssembly
(Default) = "[TARGETDIR]" ("C:\Program Files\C3\" after install)
Description = "My Control Description"
Upon startup, VS.NET scans all subfolders in the "AssemblyFolders" registry key for .NET Assembly DLL's - it cannot find the Assembly DLL since the MSI deletes it from the [TARGETDIR] after placing it into the GAC.
Is there a way to install an Assembly into the GAC and leave it in the [TARGETDIR] after the install completes?
I currently get around this by adding a SubFolder called ".NET GAC Support" and adding the Assembly.DLL into there (as well as the base "Application Folder" location), then specify the Assembly to add from the ".NET GAC Support" folder. The copy of the DLL in the ".NET GAC Support" gets deleted after the install. I would rather just specify 1 copy of the DLL.
Thanks - Todd
FOLLOW US