更新时间:2022-10-22 11:39:33
朋友,
>>参数不正确。
您的构建是在服务中运行还是在导入证书的用户帐户中运行?
这是一个频繁的MSBuild错误,来自 MSDN 您可以获得以下解决方案:
尝试关闭任何需要私钥保护的本地安全策略设置。接下来,删除并重新导入构建用户帐户的证书。
请参阅以下类似的解决方案:
希望有所帮助!
***的问候,
Stanly
Hi,
I am receiving the error below when I clicked the "Publish Now" button in Visual Studio 2015, I created the test certificate and installed on the root store and also a strong name file via VS2015. The application I was trying to publish is windows form application.
Cannot publish because the project failed to build.
An error occurred while signing: The parameter is incorrect.
Please help,
Tim
Hi friend,
>>The parameter is incorrect.
Is your build is running in a service or in a user account other than the one that imported the certificate?
This a frequent MSBuild Error, and from the MSDN you can get the below solution:
Try turning off any Local Security Policy settings that require private key protection. Next, delete and re-import the certificate for the build's user account.
And please refer to the following similar solutions:
Hope it helps!
Best Regards,
Stanly