杂七杂八 · 2022年12月11日

SignTool Error: An error occurred while attempting to sign

问题:
重装系统后打开工程,编译时发生错误,错误信息:
Error 5 An error occurred while signing: Failed to sign bin\Debug\app.publish\\setup.exe. SignTool Error: ISignedCode::Sign returned error: 0x80880253

 The signer’s certificate is not valid for signing.

SignTool Error: An error occurred while attempting to sign: bin\Debug\app.publish\\setup.exe PublishBook

编程环境:vs2008 EN

通过GOOGLE查找发现国内兄弟遇到这类问题较少,在外国网站上找到了解决答案,放到这里以备各位兄弟查询

解决办法:
     -Go to the property of the Project
    -Select the Signing tab
    -Click ‘create test certificate’ button
    it will ask for new password 2 times and you have another 1 year extension!

原文https://www.cnblogs.com/forrestsun/articles/1148686.html