@365 timviec ,Welcome to Microsoft Q&A, based on my test, I reproduced the same problem with you.
Please try the following steps to solve your problem:
- Open Visual Studio.
- On the menu bar, select Tools > Command Line > Developer Command Prompt or Developer PowerShell.
- Please enter the following command to active the tool
- Then you could use the following command to add the publisher to the trusted publishers store:
CertMgr /add CertificateFileName.cer /s /r localMachine trustedpublisher
Hope my steps could help you.
Best Regards,
Jack
If the answer is the right solution, please click "Accept Answer" and upvote it.If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.