Signing App Runtime Package on BC140 leads to "This file format cannot be signed because it is not recognized" error
Hello everyone,
recently I ran into a problem while signing AppRuntimePackage for Business Central Spring Release (140). I am able to sign OnPrem and AppSource apps for Fall Release (130) and AppSource app for Spring Release (140), but not OnPrem app.
When I try to sign the app I get this error:
C:\Program Files (x86)\Windows Kits\10\bin\10.0.18362.0\x64>SignTool sign /f <Cert path> /p <password> /t http://timestamp.verisign.com/scripts/timestamp.dll <filename>
Done Adding Additional Store
SignTool Error: This file format cannot be signed because it is not recognized.
SignTool Error: An error occurred while attempting to sign: <filename>
Number of errors: 1
While searching for a solution online I have found this https://github.com/microsoft/AL/issues/2208 ticket, but it did not help.
Same error occurs if I try to sign NavContainerAppRuntimePackage using docker container and Sign-NavContainerApp command.
At first I thought something might be wrong with my machine, but I have tried to sign app on two other computers but still no luck. And I am starting to think that something is wrong with generated AppRuntimePackage.
What could be wrong?
Any help is appreciated!