I have a signed application that uses third party DLLs. These DLLs were not signed. - So far no problem for the first step: I just signed them (getting *.il with ildasm.exe, ajust publickeytoken in the *.il 's because they have interdependencies, and made the *.dll's with ilasm.exe)
The project now compiles fine and also starts up.
But when in my code, a class constructor of the 3rd-party-DLL is called (or something else? - was just the first thing I did), I get the error "Strong-name signed assemblies must specify a public key in their InternalsVisibleTo declarations"
It seems there won't be a problem if you have the source of the DLL and can ajust in AssemblyInfo.cs by setting
[assembly: InternalsVisibleTo("MyProject.Domain.Tests, PublicKey=..."]
But: As mentioned above I have a third-party DLL I don't have the source. So no way to solve the problem like this.
Any suggestions to get this running?
See Question&Answers more detail:os