今天遇到这么个问题,打开WinForm项目编译时报出“无法在证书存储区中找到清单签名证书”错误的解决方法”这样的错。在网搜索了一下,得到以下解决方法:
1、出现该错误时,用记事本打开项目的.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>2、用记事本打开项目的csproj文件,将<SignManifests>true</SignManifests>修改为<SignManifests>false</SignManifests>即可
3、工程->属性->签名->为ClickOnce清单签名
本文详细介绍了在遇到WinForm项目编译时报出‘无法在证书存储区中找到清单签名证书’错误时,通过编辑.csproj文件来解决此问题的步骤。包括删除特定xml标签、修改签名设置以及调整清单签名状态等方法,确保项目能够顺利编译。

1081

被折叠的 条评论
为什么被折叠?



