

It’s time to build your UWP application and sign it using your certificate.įirst, complete your list of variables as below by adding the solution path, the build platform, the build configuration and the appx Package Directory: I personally like to automatically run my pipeline when the master branch is updated, it’s why I added the trigger option to the script. Trigger : - master pool : vmImage : ' windows-latest' variables : - group : uwp-pipeline steps : - task : - task : inputs : restoreSolution : ' $(solution)' - task : name : mySecureFile displayName : ' Get the pfx file certificat' inputs : secureFile : ' $(cureFilePath)' - task : inputs : targetType : ' inline' script : | Write-Host "Start adding the PFX file to the certificate store." $pfxpath = '$(cureFilePath)' $password = '$(signingCert.password)' Add-Type -AssemblyName System.Security $cert = New-Object 509Certificates.X509Certificate2 $cert.Import($pfxpath, $password, "PersistKeySet") $store = new-object 509Certificates.X509Store -argumentlist "MY", CurrentUser $store.Open("ReadWrite") $store.Add($cert) $store.Close() We first need to restore the Nugets associated to our project, to do that just add these two tasks as first steps:

Now we have our certificate installed to our agent and a variables group called uwp-pipeline ready to use. To do that just follow my previous tutorial about it.
#STONEHEARTH ALPHA 24 DEBUG AUTO BUILD INSTALL#
Prepare the certificateįirst of all we need to create the PFX certificate and install it to the agent. This is where the job definition will be defined and then interpreted by Azure DevOps. Azure DevOps will automatically create a new azure-pipelines.yml at the root of your project folder. Inside the Pipelines tab create a New pipeline and follow the 4 steps to get the source code from the correct repository.

#STONEHEARTH ALPHA 24 DEBUG AUTO BUILD HOW TO#
In this tutorial I m going to show you how to build and sign your UWP application and distribute it to your users through App Center.
