How to have installer instal asmbly to gac

  • Thread starter Thread starter David T.
  • Start date Start date
D

David T.

How can a .NET dll be installed so that it appears under the .NET tab in the
Add Reference dialog? How can this be done in a deployment project?
 
Assuming you are using the setup and deployment project thru VStudio 2003 -
you can add a special folder called "Global Assembly Cache" and place your
assembly in there.

The installer MSI will end up putting that into the GAC for you.

Here's the cool thing - GAC supports side by side versions, but if you
wanted to emulate old dll behavior by enforcing only the latest version to
exist - you can control all that thru "Publisher policy"

- Sahil Malik
http://dotnetjunkies.com/weblog/sahilmalik
 
Another option is to add a sub-key underneath
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\7.1\AssemblyFolders with
the Default value pointing to your assembly install folder.

How can a .NET dll be installed so that it appears under the .NET tab in the
Add Reference dialog? How can this be done in a deployment project?
 
Sahil Malik said:
Assuming you are using the setup and deployment project thru VStudio
2003 - you can add a special folder called "Global Assembly Cache" and
place your assembly in there.

This gets the dlls in the GAC but maybe that isn't what I need. I want the
dlls to appear under the .NET tab of the Add Reference dialog box. How can I
make this happen?

By the way thank you for your help with step one.
 
Back
Top