.net 无法在证书存储中找到清单签名证书

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/7919988/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-03 15:59:53  来源:igfitidea点击:

Unable to find manifest signing certificate in the certificate store

.netvstoclickonce

提问by Vlad Omelyanchuk

I signed the assembly with my VSTO 4.0 word add-in with strong name key file .snkand tried to uncheck Sign the ClickOnce manifest but after rebuild it appears again. After I tried to delete lines for ClickOnce manifest in .csproj, .pfxmanifest appears after every rebuild.

我使用具有强名称密钥文件的 VSTO 4.0 字加载项对程序集进行了签名,.snk并尝试取消选中对 ClickOnce 清单进行签名,但在重建后它再次出现。之后,我在试图删除线的ClickOnce清单.csproj.pfx清单出现后,每重建。

Does anyone know solution to permanently delete temporary ClickOnce manifest?

有谁知道永久删除临时 ClickOnce 清单的解决方案?

回答by Kervin Ramen

The problem for me was that the checkbox "Signing the ClickOnce manifest" was checked. If you are not using signing uncheck it in Project Properties->signing->sign the clickonce manifests

我的问题是选中了“签署 ClickOnce 清单”复选框。如果您不使用签名,请在 Project Properties->signing->sign the clickonce manifests 中取消选中它

回答by Hamid Shahid

Unchecking the "Signing the ClientOnce Manifest" doesn't always work. The solution is to remove the following lines from your csproj files

取消选中“签署 ClientOnce 清单”并不总是有效。解决方案是从您的 csproj 文件中删除以下几行

<PropertyGroup> <ManifestCertificateThumbprint>4FCE3F0998F4B89946A9D0346838E77A0C5C5568</ManifestCertificateThumbprint> </PropertyGroup> <PropertyGroup> <GenerateManifests>true</GenerateManifests> </PropertyGroup> <PropertyGroup> <SignManifests>false</SignManifests> </PropertyGroup>

<PropertyGroup> <ManifestCertificateThumbprint>4FCE3F0998F4B89946A9D0346838E77A0C5C5568</ManifestCertificateThumbprint> </PropertyGroup> <PropertyGroup> <GenerateManifests>truesGroup</GenerateManifests>truesGroup</PropertyManifestSign>Generate