当我编译我的项目时,我得到了以下错误:
Cannot import the following key file: MyKey.pfx.
The key file may be password protected.
To correct this, try to import the certificate again or manually install the
certificate to the Strong Name CSP with the following key container name:
VS_KEY_A46F65B4A8A780C7我尝试使用强命名工具(sn.exe)安装密钥,方法是启动"Developer Command Prompt for VS2013“快捷方式并输入以下文本:
sn –i “C:\MyKey.pfx” VS_KEY_A46F65B4A8A780C7(是的,该文件位于C:\目录中)
执行该命令只会得到可用命令的列表(与输入"sn -h“时得到的一样)。
我是不是漏掉了什么?
不幸的是,Google并没有帮助我解决我的问题,所以我希望stackoverflow社区能帮到我。;)
发布于 2014-08-25 17:07:01
经过一些试验,我找到了解决方案:在项目属性中,我必须重新输入.pfx文件的密码。我仍然不知道为什么,但它解决了编译错误。
希望这篇文章能帮助任何可能遇到同样问题的人。
https://stackoverflow.com/questions/25482089
复制相似问题