生成时可以运行,
但是发布时显示以下信息
签名时出错: 未能对 bin\Debug\app.publish\WindowsFormsApplication2.exe 签名。
SignTool Error: Invalid option: /fd WindowsFormsApplication2
SignTool的参数/fd用来指定签名方法,比如md5、sha1、sha256
SignTool.exe sign /v /as /ac /f sdk.pfx /p xxxx /t http://timestamp.wosign.com/timestamp /fd sha256 "D:\test_double_signed.exe"
出现了fd参数不识别,原因是SignTool的版本与机器中SDK版本不一致。
尝试安装最新的Windows SDK。
参考来自
https://msdn.microsoft.com/zh-cn/library/8s9b9yaz(v=vs.110).aspx
http://www.advancedinstaller.com/forums/viewtopic.php?f=2&t=26855
专注于.NET ERP/CRM开发框架,C/S架构,SQL Server + ORM(LLBL Gen Pro) + Infragistics WinForms