DotNetcore 6 winform app unknown publisher popup on opening exe

Sunny Sharma 1 Reputation point
2022-11-08T16:32:12.287+00:00

We have developed a winform app built on DotNet core 6. Everytime if someone opens the app by clicking on exe, user gets a popup "The Publisher cannot be verified. Are you sure you want to run this software" ?. The app is hosted on network share DFS server location and executes on host machines. Can this be fixed?

258336-capture.jpg

Developer technologies | Windows Forms
Windows for business | Windows Server | User experience | Other
Developer technologies | C#
{count} votes

2 answers

Sort by: Most helpful
  1. Karen Payne MVP 35,586 Reputation points Volunteer Moderator
    2022-11-08T17:40:13.807+00:00

    You need a certificate such as from Verisign or GoDaddy which is done via signtool.

    0 comments No comments

  2. Lex Li 6,037 Reputation points
    2022-11-10T05:04:26.97+00:00

    In short, you need a code signing certificate to sign your executable, so that Windows can display a better dialog showing your detailed information (name/organization for instance),

    https://en.wikipedia.org/wiki/Code_signing

    Otherwise, to prevent malware from harming end users, Windows shows the security warning you saw.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.