I have created two .NET Interop assemblies from two different third-party COM DLLs. Both of the COM DLLs contained a type named COMMONTYPE
. Therefore, COMMONTYPE
is now exposed through the two Interop assemblies as well.
I have a third project that needs to use these two Interop assemblies, and I get the infamous compile time error:
The type
<ABC>
exists in both<ASSEMBLY1.dll>
and<ASSEMBLY2.dll>
Since the COM DLLs are provided by a third-party vendor, I have no access to the source code, and I'm writing a C# Console application, which means I have no web.config file where I could add the debug=false
workaround. What can I do?