签名时出错: 未能对xxx 签名。SignTool Error: No certificates were found that met all the given criteria.

程序运行时报错:signtool error:no certificates were found that met all the given criteria (汉译:符号工具错误:没有找到符合所有给定标准的证书)

解决方案:打开项目->属性->签名,去掉为 ClickOnce 清单签名即可。