Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SignTool Error: Invalid option: /fd

I publish my exe and activate auto updates.

But when I compile the exe, there is an error:

Severity Code Description Project File Line Suppression State Error An error occurred while signing: Failed to sign bin\Debug\app.publish\myapp.exe. SignTool Error: Invalid option: /fd

So I couldn't publish.

When I try to uncheck "Sign the ClickOnce manifest" the error is gone but I couldn't install the package because Windows doesn't allow and the Windows Defender SmartScreen blocks my app because there's no certificate.

I have to add a certificate from "Sign the ClickOnce manifest" but now it gives the "SignTool Error: Invalid option: /fd" error.

How can I solve this problem?

like image 641
Pisagor Avatar asked Mar 13 '18 10:03

Pisagor


2 Answers

I had to change the Signature Algorithm to sha1RSA from sha256RSA

like image 180
Stefano Aquila Avatar answered Sep 20 '22 22:09

Stefano Aquila


I did just the opposite as Stefano - changed it from sha256RSA to sha1RSA - and then it allowed me to publish without the error.

Just changing the signature algorithm may do the trick.

like image 27
tencentguitar Avatar answered Sep 18 '22 22:09

tencentguitar