开发者

Managed C++ Error when using a snk file:: "missing the private key needed for signing"

开发者 https://www.devze.com 2023-02-05 07:34 出处:网络
Why am I getting this error when trying to sign a Managed C++ project using a .snk file. \"......SlimDX\\build\\vs2010\\x86\\Debug\\VOS.snk\' is missing the private key needed for signing\"

Why am I getting this error when trying to sign a Managed C++ project using a .snk file. "......SlimDX\build\vs2010\x86\Debug\VOS.snk' is missing the private key needed for signing"

Iv'e tried setting it in the project settings::

  1. Key File = $(ProjectDir)x86\$(Confi开发者_StackOverflowguration)\VOS.snk
  2. Delay Sign = No (/DELAYSIGN:NO)

And iv'e tried setting it in AssemblyInfo.cpp::

  1. [assembly:AssemblyKeyFile("VOS.snk")]
  2. [assembly:AssemblyDelaySignAttribute(false)]

I have both the .snk & .pfx files. What am I missing here? The .snk file is all I need in my C# .NET 3.5 project... Why will it not work in my managed c++ project as well? Do I need to use my pfx file also in some way?


Well somehow I was using a corrupt key or something, because when I got a new .snk file it all worked the way it should....

0

精彩评论

暂无评论...
验证码 换一张
取 消