We have project PrjDb.dll in vb 6.0 that has a reference to ado 2.5. The project is built on Machine A. Now when we generate an interop for PrjDb.dll on another machine B, we end up with a new ADODB.dll with ver 2.5 in version field instead of linking it with the Primary Interop Assembly adodb.dll ( found under 'Program Files\Microsoft.NET\Primary Interop Assemblies'). The problem is that when i deploy my application, it now asks for this newly generated adodb.dll. And i don't want to ship it.
Even if I provide the adodb.dll path in the command line, it still generates the new interop for AdoDB. I tried using the switch /strict then it says the it can not resolve references using the AdoDB.dll that i want it to use.
This doesn’t happen if we generate interop on the same machine where we built PrjDb.dll. Rather on any machine other than machine B, it automatically picks the PIA for AdoDB.
Any idea whats going on machine B when we generate the interop for PrjDb.dll?