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.

https://connect.microsoft.com/VisualStudio/feedback/details/464524/mt-error-810100b3?wa=wsignin1.0

http://social.msdn.microsoft.com/Forums/en/vcprerelease/thread/61b58555-3579-40c9-9625-b17a9955e3f5

No comments:

Post a Comment