I've just got my certificate to sign Windows Phone Apps and when I try to run this command:
XapSignTool.exe sign /v C:\Temp\MyApp_Release_AnyCPU.xap
I'm using Visual Studio 2012 Express.
I get an strange behavior:
The following certificate was selected: Issued to: XXXXXX Issued by: Symantec Enterprise Mobile CA for Microsoft Expires: XXXXXX SHA1 hash: XXXXX Done Adding Additional Store Successfully signed: C:\Users\Fernando\AppData\Local\Temp\tmp7E47.tmp\MyApp.dll Number of files successfully Signed: 1 Number of warnings: 0 Number of errors: 0
The following certificate was selected: Issued to: XXXXXX Issued by: Symantec Enterprise Mobile CA for Microsoft Expires: XXXXXX SHA1 hash: XXXXXX Done Adding Additional Store Number of files successfully Signed: 0 Number of warnings: 0 Number of errors: 1
SignTool Error: This file format cannot be signed because it is not recognized. SignTool Error: An error occurred while attempting to sign: C:\Users\Fernando\Ap pData\Local\Temp\tmp7E48.tmp\MyApp_Release_AnyCPU.xap
XapSignTool Error: signtool.exe failed with exit code 1.
Timers: Main:528.4ms ExtractZip(C:\Temp\MyApp_Release_AnyCPU.xap):198.5ms Signing PE files:120.4ms LaunchSignTool(C:\Users\Fernando\AppData\Local\Temp\tmp7E47.tmp\MyApp.dll): 93.0ms CreateXap(C:\Temp\MyApp_Release_AnyCPU.xap):107.5ms Signing XAP file:-63524687248290.1ms LaunchSignTool(C:\Users\Fernando\AppData\Local\Temp\tmp7E48.tmp\MyApp_Release_AnyCPU.xap):56.0ms
CleanUp:6.2ms
Can anyone help me? Sounds weird to me...
It seems I was trying to use signtool.exe from x64 folder. Using the one from x86 folder works ok!