Msix not created during Azure DevOps pipeline for WinForms app

%3CLINGO-SUB%20id%3D%22lingo-sub-2736808%22%20slang%3D%22en-US%22%3EMsix%20not%20created%20during%20Azure%20DevOps%20pipeline%20for%20WinForms%20app%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2736808%22%20slang%3D%22en-US%22%3E%3CP%3EI'm%20trying%20to%20create%20a%20.msix%20for%20a%20WinForms%20app%20using%20an%20Azure%20DevOps%20pipeline.%20All%20the%20tasks%20report%20success%2C%20but%20the%20artifacts%20are%20empty.%20What%20am%20I%20doing%20wrong%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-yaml%22%3E%3CCODE%3Evariables%3A%0A%20%20-%20template%3A%20..%2FTestVariables.yml%0A%20%20-%20group%3A%20'code-signing-variables-group'%0A%0A%0Aparameters%3A%0A-%20name%3A%20BuildConfiguration%0A%20%20displayName%3A%20Build%20Configuration%0A%20%20type%3A%20string%0A%20%20default%3A%20Release%0A%20%20values%3A%0A%20%20-%20Debug%0A%20%20-%20Release%0A%0A-%20name%3A%20BuildPlatform%0A%20%20displayName%3A%20Build%20Platform%0A%20%20type%3A%20string%0A%20%20default%3A%20Any%20CPU%0A%20%20values%3A%0A%20%20-%20Any%20CPU%0A%20%20-%20x86%0A%20%20-%20x64%0A%0A-%20name%3A%20CleanRepo%0A%20%20displayName%3A%20Clean%20the%20repo%0A%20%20type%3A%20boolean%0A%20%20default%3A%20true%0A%0A%0A%23%20Remove%20this%20to%20enable%20CI%0Atrigger%3A%20none%0A%0A%0Ajobs%3A%0A-%20job%3A%20DoItNow%0A%20%20variables%3A%0A%20%20%20%20-%20name%3A%20solutionFile%0A%20%20%20%20%20%20value%3A%20c%5CMyApp.slnf%0A%0A%20%20pool%3A%0A%20%20%20%20name%3A%20Default%0A%20%20%20%20demands%3A%0A%20%20%20%20-%20msbuild%0A%20%20%20%20-%20visualstudio%0A%0A%20%20steps%3A%0A%20%20-%20checkout%3A%20self%0A%20%20%20%20clean%3A%20%24%7B%7B%20parameters.CleanRepo%20%7D%7D%0A%0A%20%20-%20template%3A%20..%2FOurNugets.yml%0A%20%20%20%20parameters%3A%0A%20%20%20%20%20%20BuildConfiguration%3A%20%24%7B%7B%20parameters.BuildConfiguration%20%7D%7D%0A%20%20%20%20%20%20BuildPlatform%3A%20%24%7B%7B%20parameters.BuildPlatform%20%7D%7D%0A%0A%20%20-%20task%3A%20MSIX.msix-ci-automation-task.msix-packaging.MsixPackaging%401%0A%20%20%20%20displayName%3A%20'MSIX%20build%20and%20package'%0A%20%20%20%20inputs%3A%0A%20%20%20%20%20%20outputPath%3A%20'%24(Build.ArtifactStagingDirectory)%5CMyApp.msix'%0A%20%20%20%20%20%20solution%3A%20%24(solutionFile)%0A%20%20%20%20%20%20generateBundle%3A%20true%0A%20%20%20%20%20%20buildConfiguration%3A%20%24%7B%7B%20parameters.BuildConfiguration%20%7D%7D%0A%20%20%20%20%20%20buildPlatform%3A%20%24%7B%7B%20parameters.BuildPlatform%20%7D%7D%0A%0A%20%20-%20task%3A%20MSIX.msix-ci-automation-task.msix-signing.MsixSigning%401%0A%20%20%20%20displayName%3A%20'Sign%20MSIX%20package'%0A%20%20%20%20inputs%3A%0A%20%20%20%20%20%20certificate%3A%20'CodeSigning.pfx'%0A%20%20%20%20%20%20passwordVariable%3A%20signCertPassword%0A%20%20%20%20%20%20timeStampServer%3A%20'http%3A%2F%2Ftimestamp.digicert.com'%0A%0A%20%20-%20task%3A%20PublishPipelineArtifact%401%0A%20%20%20%20displayName%3A%20'Publish%20Pipeline%20Artifact'%0A%20%20%20%20inputs%3A%0A%20%20%20%20%20%20targetPath%3A%20'%24(Build.ArtifactStagingDirectory)'%0A%20%20%20%20%20%20artifact%3A%20Installer%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2738884%22%20slang%3D%22en-US%22%3ERe%3A%20Msix%20not%20created%20during%20Azure%20DevOps%20pipeline%20for%20WinForms%20app%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2738884%22%20slang%3D%22en-US%22%3EWhat's%20the%20behavior%20you're%20encountering%3F%20please%20be%20more%20specific.%3CBR%20%2F%3E%3CBR%20%2F%3EDo%20yoy%20get%20a%20error%20message%3F%20is%20there%20a%20build%20log%20you%20can%20share%3F%20or%20does%20the%20build%20fails%20silently%20and%20the%20MSIX%20is%20simply%20missing.%3CBR%20%2F%3E%3CBR%20%2F%3EIs%20digital%20signing%20failing%3F%20are%20any%20resources%20missing%3F...%20this%20list%20can%20go%20on.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2739794%22%20slang%3D%22en-US%22%3ERe%3A%20Msix%20not%20created%20during%20Azure%20DevOps%20pipeline%20for%20WinForms%20app%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2739794%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F147865%22%20target%3D%22_blank%22%3E%40Bogdan%20Mitrache%3C%2FA%3E%26nbsp%3BThere%20is%20no%20error.%20Like%20I%20said%2C%20all%20the%20pipeline%20tasks%20report%20success%20but%20the%20resulting%20artifacts%20are%20empty.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAttached%20is%20the%20log.%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

I'm trying to create a .msix for a WinForms app using an Azure DevOps pipeline. All the tasks report success, but the artifacts are empty. What am I doing wrong?

 

variables:
  - template: ../TestVariables.yml
  - group: 'code-signing-variables-group'


parameters:
- name: BuildConfiguration
  displayName: Build Configuration
  type: string
  default: Release
  values:
  - Debug
  - Release

- name: BuildPlatform
  displayName: Build Platform
  type: string
  default: Any CPU
  values:
  - Any CPU
  - x86
  - x64

- name: CleanRepo
  displayName: Clean the repo
  type: boolean
  default: true


# Remove this to enable CI
trigger: none


jobs:
- job: DoItNow
  variables:
    - name: solutionFile
      value: c\MyApp.slnf

  pool:
    name: Default
    demands:
    - msbuild
    - visualstudio

  steps:
  - checkout: self
    clean: ${{ parameters.CleanRepo }}

  - template: ../OurNugets.yml
    parameters:
      BuildConfiguration: ${{ parameters.BuildConfiguration }}
      BuildPlatform: ${{ parameters.BuildPlatform }}

  - task: MSIX.msix-ci-automation-task.msix-packaging.MsixPackaging@1
    displayName: 'MSIX build and package'
    inputs:
      outputPath: '$(Build.ArtifactStagingDirectory)\MyApp.msix'
      solution: $(solutionFile)
      generateBundle: true
      buildConfiguration: ${{ parameters.BuildConfiguration }}
      buildPlatform: ${{ parameters.BuildPlatform }}

  - task: MSIX.msix-ci-automation-task.msix-signing.MsixSigning@1
    displayName: 'Sign MSIX package'
    inputs:
      certificate: 'CodeSigning.pfx'
      passwordVariable: signCertPassword
      timeStampServer: 'http://timestamp.digicert.com'

  - task: PublishPipelineArtifact@1
    displayName: 'Publish Pipeline Artifact'
    inputs:
      targetPath: '$(Build.ArtifactStagingDirectory)'
      artifact: Installer
2 Replies
What's the behavior you're encountering? please be more specific.

Do yoy get a error message? is there a build log you can share? or does the build fails silently and the MSIX is simply missing.

Is digital signing failing? are any resources missing?... this list can go on.

@Bogdan Mitrache There is no error. Like I said, all the pipeline tasks report success but the resulting artifacts are empty.

 

Attached is the log.