Wednesday, June 9, 2010

C++ Signing

1)Use Linker Advanced options,(Project Properties> Linker> Advanced), “Delay Sign”=yes and “Key File”=$(ProjectDir)<key.snk>

2)Add a custom build step

sn -R $(TargetDir)$(TargetFileName) $(ProjectDir)<key.snk>

Note: Visual Studio will ignore the above command because an “outputs” value is not set. Just type a value in the field (I typed Success)

1>mt.exe : general warning 810100b3: x64\Debug\ClearCanvas.Dicom.Codec.Jpeg.dll is a strong-name signed assembly and embedding a manifest invalidates the signature. You will need to re-sign this file to make it a valid assembly.

No comments:

Post a Comment