I have a .NET assembly which I've strongly named, to put it in the GAC. However, the same assembly is also digitally signed using a .pfx
file later on, for digital signature.
I've noticed that this assembly, which has been so dual signed, fails the strong name validation, and does not install in the target machine's GAC.
Could it be possible that the digital signing procedure removes the SN-key generated strong naming procedure?
The digital signature is essential and if the 2 are not compatible, then can the file be signed by the .pfx
file instead, as easily as the SN-naming process?
Also, the assembly is in C++/CLI
, not in C#
.
EDIT : Looking at MSDN Documentation, it says if using linker options for strong naming, and if using a post process tool likemt.exe
(I'm not sure if Signtool.exe
falls amongst these tools), the assembly would need to be resigned.
Also, this statement :
If you use the signing attributes when building in the development environment, you can successfully sign the assembly by explicitly calling sn.exe (Sn.exe (Strong Name Tool)) in a post-build event.
...is slightly confusing. Which attributes is it referring to, the CLR
attributes, or Linker
options?