Thursday, August 7, 2008

Some tricks when deploying your .Net COM Dll to the GAC

A little trick here:

Add the Dll manually to the GAC in the Setup project (as a file rather than as a "project Output"); then set the "register" property of the Dll to "vsdraCOM". If you use "Project Output" for the Dll project it seems to (a) register the COM object only sometimes, and (b) keeps trying to stick the TLB into the GAC and giving you an error.