You need a certificate such as from Verisign or GoDaddy which is done via signtool.
DotNetcore 6 winform app unknown publisher popup on opening exe
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?
Developer technologies | Windows Forms
Windows for business | Windows Server | User experience | Other
Developer technologies | C#
2 answers
Sort by: Most helpful
-
Karen Payne MVP 35,586 Reputation points Volunteer Moderator
2022-11-08T17:40:13.807+00:00 -
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.