I got a trusted cert from Comodo CA and having a hard time getting it to work with the InternalsVisibleTo Attribute. I'm getting a warning that the assembly is invalid and can't be resolved. I retrieved the public Key with X509Certificate.GetPublicKeyString() and put that into the assemblyinfo.
[assembly:System.Runtime.CompilerServices.InternalsVisibleTo("Assemblyname,PublicKey=MyPublicKey"]
We had used an untrusted cert so far and it works fine with it. What I noticed is that the PublicKey of the trusted cert (.pfx) is 540 characters long and our untrusted (.snk) is just 320.
Where is my error?
Additionally I can't use the projectsettings to pick my .pfx to sign it. Postbuild works. when using the projectsettings it tells me that it cant find the cert and the private key.