Mar 07 2023 06:08 AM
When building an app on devops pipeline using this (part of the yaml) we recently are getting errors
- task: VSBuild@1
inputs:
platform: 'x64'
solution: '$(solution)'
configuration: '$(BuildConfiguration)'
msbuildArgs: '/p:AppxBundlePlatforms="$(buildPlatform)"
/p:AppxPackageDir="$(appxPackageDir)"
/p:AppxBundle=Always
/p:UapAppxPackageBuildMode=SideloadOnly
/p:AppxPackageSigningEnabled=true
/p:PackageCertificateThumbprint="$(signingCert.thumbprint)"
/p:PackageCertificateKeyFile="$(mySecureFile.secureFilePath)"
/p:PackageCertificatePassword="$(signingCert.password)"'
While windows-latest was still windows 2019 everything worked, but since it got upgraded to windows 2022 the build is failing with the error.
##[error]C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VisualStudio\v17.0\AppxPackage\Microsoft.AppXPackage.Targets(4745,5): Error APPX1204: Failed to sign 'D:\a\1\s\src\Aucxis.Polaris.App.UWP.Gate\bin\x64\Release\Aucxis.Polaris.App.UWP.Gate_1.1.2.2050_x64.appx'. SignTool Error: The /p option requires the /f option.
Now since signing is happing as part of the VSBuild@1 I'm not sure ow to proceeed in making things work again for windows-2022 images. For now i can continue building using windows-2019 images, but preferably we'dd go forward with the latest images.
Mar 08 2023 05:52 AM
Mar 08 2023 09:01 AM
Mar 08 2023 11:53 PM
Mar 12 2023 11:27 PM