“在证书存储区中找不到清单签名证书"-即使添加新密钥 [英] “Unable to find manifest signing certificate in the certificate store” - even when add new key
问题描述
我无法使用强名称键签名来构建项目-标题中的消息始终会出现.
I cannot build projects with a strong name key signing - the message in the title always comes up.
是的,该项目最初是从另一台计算机复制过来的.但是,即使我通过项目属性"中的签名"选项卡添加了新密钥,该错误仍然会显示.
Yes the project was initially copied over from another machine. However even if I add a new key via the Signing tab in Project Properties, this error is still shown.
我尝试以管理员身份运行Visual Studio,并尝试将密钥手动添加到Windows证书存储.
I have tried running Visual Studio as an Administrator and have tried manually adding the keys to Windows Certificate Store.
帮助!
我在新项目中没有收到此错误,但是我很想让这个现有项目正常工作.即使创建新证书也无法使用!
I don't get this error with a new project, but I'd quite like to get this existing project working. It won't work even if I create a new certificate!
推荐答案
我终于找到了解决方案,并真的希望对其他人有所帮助.
I've finally found the solution and really hope this helps someone else too.
- 编辑相关项目的
.csproj
文件. -
删除以下代码行:
- Edit the
.csproj
file for the project in question. Delete the following lines of code:
<PropertyGroup>
<ManifestCertificateThumbprint>...........</ManifestCertificateThumbprint>
</PropertyGroup>
<PropertyGroup>
<ManifestKeyFile>xxxxxxxx.pfx</ManifestKeyFile>
</PropertyGroup>
<PropertyGroup>
<GenerateManifests>true</GenerateManifests>
</PropertyGroup>
<PropertyGroup>
<SignManifests>false</SignManifests>
</PropertyGroup>
这篇关于“在证书存储区中找不到清单签名证书"-即使添加新密钥的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!