Author Topic: VS New Update Fails Rebuild on Certificate Not Found  (Read 661 times)

AabeckControls

  • Full Member
  • ***
  • Posts: 193
    • View Profile
VS New Update Fails Rebuild on Certificate Not Found
« on: May 16, 2020, 10:38:45 AM »
VS Community just updated today and the project I am working on repeatedly fails on Rebuild with the same message:
 An error occurred while signing: Failed to sign bin\Debug\AdvancedHMI.exe. SignTool Error: No certificates were found that met all the criteria given.

I have closed & reopened the solution and VS entirely, I have tried Clean Solution-Rebuild and Build-Rebuild always with the same error

The Debug folder may have 1 file in it, or none, and 2 empty folders.

I haven't added any security to the project or deleted any files or certificates, haven't changed any settings in VS either.

I just tried the project on my laptop that (unfortunately) I update VS on it this morning also and it does the exact same thing.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: VS New Update Fails Rebuild on Certificate Not Found
« Reply #1 on: May 16, 2020, 11:25:05 AM »
Right click the AdvancedHMI project in solution explorer and select Properties
Go to the Signing tab and make sure you don't have any of those checked.

This typically happens if you use Click Once deploy (Publish), which is one of the reasons I always discourage using that feature.

AabeckControls

  • Full Member
  • ***
  • Posts: 193
    • View Profile
Re: VS New Update Fails Rebuild on Certificate Not Found
« Reply #2 on: May 16, 2020, 11:35:58 AM »
Archie,

Thanks - that was it. The sign manifest was checked.

I have heeded your advice and never Publish a project - just put a shortcut to the Debug folder.