“无法在证书存储区中找到清单签名证书”解决办法

家住魔仙堡 提交于 2020-02-02 08:03:34

方法:

1:用记事本打开对应csproj文件,把里面的" <SignManifests>true</SignManifests> "改成"<SignManifests>false</SignManifests>".

2:用记事本打开项目的.csproj文件,删除类似以下xml就能顺利通过编译了

<ManifestCertificateThumbprint>B531F2CF222748C5E29308FC2247704827D1EA8C</ManifestCertificateThumbprint>
     <ManifestKeyFile>xxxx_TemporaryKey.pfx</ManifestKeyFile>
     <GenerateManifests>true</GenerateManifests>
     <SignManifests>true</SignManifests>
     <PublishUrl>D:\xxx\bin\</PublishUrl>
     <Install>true</Install>
     <InstallFrom>Disk</InstallFrom>
     <UpdateEnabled>false</UpdateEnabled>
     <UpdateMode>Foreground</UpdateMode>
     <UpdateInterval>7</UpdateInterval>
     <UpdateIntervalUnits>Days</UpdateIntervalUnits>
     <UpdatePeriodically>false</UpdatePeriodically>
     <UpdateRequired>false</UpdateRequired>
     <MapFileExtensions>true</MapFileExtensions>
     <CreateWebPageOnPublish>false</CreateWebPageOnPublish>
     <ApplicationVersion>1.0.0.%2a</ApplicationVersion>
     <IsWebBootstrapper>false</IsWebBootstrapper>
     <BootstrapperEnabled>true</BootstrapperEnabled>

3.在“解决方案资源管理器”中的项目上点右键- 〉属性 -〉签名 -〉把“为Clickonce清单签名”前面的勾去掉,然后重新生成解决方案即可。

注:方法2没做测试,方法1和3测试成功。

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!