Assembly versioning problem

M

Michael Moreno

Hello,

I have been faced with an assembly versionning problem that I could not
solve in two days and would appreciate any help.

Here is what I have:

C# Exe "Exe" that uses Win32 COM DLL "SD_MarketData" and C# Assembly
"Asm"
C# COM DLL "CComdll" that uses "SD_MarketData" and "Asm".


"CComdll" must have a strong name to be registered which implies that
"Interop.SD_MarketData" and "Asm" must have a strong name.
But "Exe" does not have a strong name and when it references
"SD_MarketData" it does not create the "Interop.SD_MarketData" with a
strong name.

When I start "Exe" it fails saying:

The located assembly's manifest definition with name
'Interop.SD_MarketData' does not match the assembly reference.

The reasons is simple : 2 identical Interop.SD_MarketData are created
but with different versions and if the Exe starts then the COM will
fail to start and vice-versa.

Would you know how this versionning issue can be solved please?

Thanks.
 
M

Mattias Sjögren

Would you know how this versionning issue can be solved please?

If I understand the situation correctly: Reference your existing
strong-named Interop.SD_MarketData assembly from the EXE instead of
referencing SD_MarsketData and creating a new one.


Mattias
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top