Fred Andres
Fred Andres

Reputation: 41

Visual Studio 2017 publish sign tool error

When I try to publish a C# Excel addin using Visual Studio 2017, I get the following error:

An error occurred while signing: Failed to sign bin\Debug\app.publish\setup.exe. Sign Tool Error: Invalid option /fd

I have tried uninstalling all versions of Visual Studio then reinstalling Visual Studio 2017. I've also Googled the error and tried 3 or 4 suggested solutions. None worked. Can anyone help?

Upvotes: 2

Views: 1537

Answers (2)

Fred Andres
Fred Andres

Reputation: 41

Eureka!! I found it. The problem was that when I uninstalled previous versions of visual studio going back to 2007, it did not uninstall the associated sign tool. In 2007 /fd was not a valid option. I manually deleted them and reinstalled visual studio. It works fine now.

Upvotes: 2

SuperSandro2000
SuperSandro2000

Reputation: 583

You provided the flag "/fd" to the signing tool and it does not understand this. Try updating all your C# sharp programs and if this does not help try finding a setting where you can set arguments to the signing tool.

Upvotes: 0

Related Questions