Problem Description:
HoloLens encountered the following error message when publishing to the Windows store in Release vs:
The key file "xxxx.pfx" could not be imported. The key file may be password protected. To correct this problem, try to manually import the certificate into the current user's personal certificate store.
(Note: In other cases this error message is also the solution)
Workaround I was found by visiting the Web site it was prompted to find a solution to the--http://go.microsoft.com/fwlink/?linkid=241478
The specific approach is as follows: 1: In Solution Explorer, open the shortcut menu for the. appxmanifest file, select the open mode, and then select the application display designer.
2: In the application manifest designer, select the Package tab and select the Certificate button.
3: Select an existing certificate file from the file system (because I am publishing a HoloLens application, you can create a certificate automatically in unity).
4: Then in your VS project to find the change certificate file, will automatically prompt you to enter the password
5: After entering the correct password, a rerun will be resolved.