Tech Community Live: Windows edition
Jun 05 2024, 07:30 AM - 11:30 AM (PDT)
Microsoft Tech Community

How to create html page via Azure Pipeline?

Copper Contributor

So I'm looking into continuous deployment with Azure Pipelines and gave up with Click Once and moved to MSIX for my releases. I did a publish from within Visual Studio (Right click project -> Publish -> Generate App Packages) and that created a similar experience to the ClickOnce files. 


I've tried to generate the same using the MSIX Packaging Extension in Azure DevOps and all I get built is the appinstaller and msix files. Is it possible to get the Azure version to publish the same files as what Visual Studio does? Screenshots and Yaml below.


Also how do you increment the app versions? 


mattphillips_0-1631875880557.png   mattphillips_1-1631875898723.png




  name: Clayton
  demands: msbuild

- task: NuGetToolInstaller@1
  displayName: 'Use NuGet '
    checkLatest: true

- task: NuGetCommand@2
  displayName: 'NuGet restore'
    restoreSolution: '$/BluntNip/SolarEdge/SolarEdgeAPITest/SolarEdgeAPITest.sln'

- task: MSIX.msix-ci-automation-task.msix-packaging.MsixPackaging@1
  displayName: 'MSIX build and package'
    outputPath: '$(build.artifactstagingdirectory)\SolarEdge.msix'
    solution: '$/BluntNip/SolarEdge/SolarEdgeAPITest/SolarEdgeAPITest.sln'
    clean: true
    buildConfiguration: release
    buildPlatform: 'Any CPU'
    updateAppVersion: true
    manifestFile: 'SolarEdge\SolarEdgeAPITest\DemoPackage\Package.appxmanifest'
    appPackageDistributionMode: SideloadOnly
    msbuildArchitecture: x64

- task:
  displayName: 'Create App Installer file'
    package: '$(build.artifactstagingdirectory)\SolarEdge.msix'
    outputPath: '$(build.artifactstagingdirectory)\SolarEdge.appinstaller'
    uri: 'file://hangar/WebSites/Releases/solaredge3/solaredge.appinstaller'
    mainItemUri: 'file://hangar/WebSites/Releases/solaredge3/solaredge.msix'
    hoursBetweenUpdateChecks: 0
    showPromptWhenUpdating: true
    updateBlocksActivation: true

- task: MSIX.msix-ci-automation-task.msix-signing.MsixSigning@1
  displayName: 'Sign MSIX package'
    certificate: cert1.cer
    passwordVariable: secret

- task: CopyFiles@2
  displayName: 'Copy Files to: \\hangar\WebSites\Releases\Solaredge3'
    SourceFolder: '$(build.artifactstagingdirectory)'
    TargetFolder: '\\hangar\WebSites\Releases\Solaredge3'
    CleanTargetFolder: true
    OverWrite: true



1 Reply


I tried creating an MSIX from Visaul Studio 2022 with the suggested steps and it did not create an HTML file for me.  Could you elaborate more on the context of this html file?