更新时间:2022-12-07 18:11:12
已解决!
升级框架和
*转到项目属性页面,选择签名选项卡
*确保选中签署ClickOnce清单 - >单击更多详细信息...按钮
*单击安装证书(如果您看不到此按钮,只需从解决方案资源管理器中删除旧的pfx文件然后单击创建测试证书 - >按下Next以通过向导 - 介绍 - >检查'将所有证书放在以下商店中' - radiobutton - >点击浏览...
*选择受信任的根证书颁发机构并按确定
*按接下来然后单击完成以完成向导并再次执行,但将其安装到Trushed Publishers而不是
开发时不再提供安全提示!
Solved!
upgrade framework and
* Go to your project properties page, select the 'Signing' tab
* Make sure "Sign the ClickOnce manifests" is checked -> Click the 'More details...' button
* Click 'Install Certificate' (if you cant see this button, just delete your old pfx-file from solution explorer and then click Create Test Certificate) -> press Next to get past the Wizard-intro -> Check the 'Place all certificates in the following store'-radiobutton -> Click 'Browse...'
* Select Trusted Root Certification Authorities and press OK
* Press Next and then Finish to complete the wizard and do it again but install it to Trushed Publishers instead
No more security prompts while developing!