Build android app on azure Pipelines error MSB4044: The "AndroidSignPackage" task was not given a value for the required parameter "KeyPass"

Viewed 151

I am creating a Pipelines to have the files to download on Android app, and as soon as I build with MSBuild it tells me error error MSB4044: The "AndroidSignPackage" task was not given a value for the required parameter "KeyPass". because I didn't put the password of the Keypass in my csproj as it's recommended in the maui doc so how can I do to give the password without it being in clear.

the MSBuild in YAML

- task: MSBuild@1
  displayName: 'Build'
  inputs:
    platform: '$(buildPlatform)'
    solution: '$(solution)'
    configuration: '$(buildConfiguration)'
    msbuildArgs: '/p:AppxBundlePlatforms="$(buildPlatform)" /p:AppxPackageDir="$(appxPackageDir)" /p:AppxBundle=Never p:UapAppxPackageBuildMode=SideLoadOnly /p:AppxPackageSigningEnabled=true /p:PackageCertificateThumbprint="" /p:PackageCertificateKeyFile="$(signingCert.secureFilePath)"'

the csproj

<PropertyGroup Condition="$(TargetFramework.Contains('-android')) and '$(Configuration)' == 'Release'">
    <AndroidKeyStore>True</AndroidKeyStore>
    <AndroidSigningKeyStore>myapp.keystore</AndroidSigningKeyStore>
    <AndroidSigningKeyAlias>key</AndroidSigningKeyAlias>
    <AndroidSigningKeyPass></AndroidSigningKeyPass>
    <AndroidSigningStorePass></AndroidSigningStorePass>
</PropertyGroup>
0 Answers
Related