Assembly generation failed -- Referenced assembly does not have a strong name

  • Thread starter Thread starter Jeff0803
  • Start date Start date
J

Jeff0803

Guest
My program is one of the C# project of a Solution of which assemblies are in the same name space.

And my program references a DLL which is within the same name space.

I'm making my project to be callable from other unmanaged program like C++ or VB6.

I created strong key file using "sn -k TestKeyPair.snk".

And I added assembly like following.

[assembly: AssemblyKeyFile((@"..\Deployment\Release\TestKeyPair.snk")]

If I rebuild, following error occur.

Error 76 Assembly generation failed -- Referenced assembly 'MyRefDll' does not have a strong name

"MyRefDLL" is the dll my program is referencing.

Why this error occur?

Can anybody give me some advice?

Continue reading...
 
Back
Top