How to sign Console App inside Windows Application Packaging Project
I have a Windows Application Packaging Project that contains UWP and Console App. UWP app is set as entry point and in defined condition it starts Console App with FullTrustProcessLauncher. When this happens - Console requests admin rights and user receives default Windows UAC prompt. This prompt has field "Publisher" and I need to sign the Console App itself to pass there our company name.
The problem is that UWP and Packaging project have Package.appxmanifest that works greatly with .pfx certificate, but ConsoleApp has only "Strong naming" property in project properties that fails every time I try to pass there our certificate. Build fails with "MSB3325: Cannot import the following key file" error, i've tried to solve it with help of this article, but it shows that in older .NET projects my certificate should appear in the dropdown, but I have a newer .NET project that doesn't provide any dropdown for this field so I can only pass there path to .pfx file. Any ideas about how can I solve this problem? Thanks