由于关键问题 windows 重新安装后无法通过 clickonce 发布

Cannot publish via clickonce after windows reinstallation due to key problems

在我重新安装 windows 之后,我的 clickonce signing 不再工作了。单击 publish 会弹出一个消息:

"The application is signed with a different key than the existing application on the server. Do you want to overwrite it?"

根据 MS 帮助,单击“是”将导致我的用户停止获取自动更新。我也收到了有关文化设置的警告,但在设置 en 后,这已被检查并且不是问题所在。我找到了一个 similar problem 但没有解决它的帮助答案。有人可以帮我吗?

解决方法: 证书到期日期有问题。

解法: 我从here. Be carefully, you have to use the project as a zip filelink下载了renewCert Tool然后自己编译。对于 运行,您必须将 Crypt32.dll 添加到 Project->Properties->Linker->Input->Additional Dependencies 以获得 Configuration: Release

现在我使用命令行来延长我的证书到期日期。现在可以了。