I was hoping someone can point me in the right direction. I listed the problem in a few steps to hopefully clarify the issue.
- I register a C++ DLL into COM using regsvr32.
- I then use tlbimp with the /primary attribute on the C++ DLL to make an assembly file that can be used by C#.
- I then register the newly generated assembly into the GAC.
- I call regasm on the generated assembly so that the C++ type library contains a reference to the GACed assembly.
The problem is that when I use regasm /u, it says it was "unregistered successfully". But, when I check the typelib in COM using OLEVIEW it still shows the PrimaryInterop reference to the GACed assembly.
I have tried using regasm /u /tlb aswell, but I get a warning saying this:
RegAsm : warning RA0000 : Type library not un-registered since the assembly was
imported from COM
Thanks for any assistance as this is driving me crazy ;)