CI pipeline in Azure DevOps not producing exe file

Viewed 11

I am new to Azure Pipelines, so I apologize if this seems rudimentary. I created a build pipeline in Azure DevOps that runs successfully, but when I click into the artifact that it produced all of the files that were in the bin/Release folder are available except for the exe. Does anyone know why this may be? Is my YAML structured correctly for my WPF application?

trigger:
- main

pool:
  vmImage: 'windows-latest'

variables:
  solution: '**/*.sln'
  buildPlatform: 'Any CPU'
  buildConfiguration: 'Release'

steps:
- task: NuGetToolInstaller@1


- task: NuGetCommand@2
  inputs:
    restoreSolution: '$(solution)'

- task: VSBuild@1
  inputs:
    solution: '$(solution)'
    platform: '$(buildPlatform)'
    configuration: '$(buildConfiguration)'

- task: VSTest@2
  inputs:
    platform: '$(buildPlatform)'
    configuration: '$(buildConfiguration)'


- task: CopyFiles@2
  displayName: 'Copy setup to artifact'
  inputs:
    SourceFolder: 'bin\\Release'
    Contents: '**'
    targetFolder: '$(Build.ArtifactStagingDirectory)'    

- task: PublishBuildArtifacts@1    
  displayName: 'Publish Artifact: drop'
  inputs:
    PathtoPublish: '$(build.artifactstagingdirectory)'
    ArtifactName: 'Install Package'
    publishLocation: 'Container'

On a related note, if I wanted this installer to be available as a link on say a SharePoint site, how would I go about setting up the CD pipeline?

0 Answers
Related