I have recently increased the .NET version that an assembly works under from 3.5 to 4.5.1. Previously I was able to register it for COM interop by going to the file and under registration ticking the box for COM interop.
The file is now using .NET 4.5.1 and this no longer works. (I am not sure that this is the reason but it does seem like it is what is happening). When I go the to file and do:
C:\Users\Administrator\Desktop>"C:\Windows\Microsoft.NET\Framework\v4.0.30319\regasm.exe" /codebase MyFile.dll"
It registers and can be seen by the other application.
Ideally I would like the installer to do the equivalent of this:
C:\Users\Administrator\Desktop>"C:\Windows\Microsoft.NET\Framework\v4.0.30319\regasm.exe" /codebase /tlb MyFile.dll"
so that the tlb file is created and saved in the same directory as my assembly. I have not worked out how to do this so any suggestions would be helpful.
Thanks
FOLLOW US
Get the latest news in Application Packaging