Search code examples
c#visual-studiodllnamespacesclr

"Assembly Same Simple Name already been imported" error


This is a CLR project. I'm importing two DLL files with the same name, quizz.dll (I rename the old version as legacyquizz.dll) and I include the newer version as quizz.dll into a legacy converter test project. (The legacy converter project being tested only imports the old quizz.dll).

This is the error I'm getting . . .

An assembly with the same simple name 'Quizz, Version=2.0.0.1, Culture=neutral, PublicKeyToken=null has already been imported.

Try removing one of the references or sign them to enable side-by-side. c:\ . . . \Quizz.dll

The path it's pointing to is the destination of the newer version of quizz.dll.

I'm using an external alias on the legacyquizz.dll file:

extern alias legacy;

What is a "simple name" in this context?


Solution

  • You can see the simple name by opening project properties and selecting Assembly Information:

    enter image description here

    To sign the assembly you need to select Signing tab and create or select signing key:

    enter image description here