I have a repo with 4 projects, 2 class libraries, 1 asp.net core project and 1 console.exe project
When I run the following, it only builds a zip for the asp.net core project. I would like it to also build a zip for the console app
trigger:
- master
pool:
vmImage: 'windows-2019'
variables:
buildConfiguration: 'Release'
steps:
- task: UseDotNet@2
displayName: 'Install .NET Core SDK'
inputs:
version: 5.0.x
performMultiLevelLookup: true
includePreviewVersions: true # Required for preview versions
- task: DotNetCoreCLI@2
displayName: "Publish"
inputs:
command: 'publish'
arguments: '-r win-x64 --configuration $(BuildConfiguration) --output $(Build.ArtifactStagingDirectory)'
- task: PublishBuildArtifacts@1
displayName: "Upload Artifacts"
inputs:
pathtoPublish: '$(Build.ArtifactStagingDirectory)'
EDIT: Based on @DreadedForet's code, here is what is produced that created with 1 zip (job) with the following in it:
- Test Results - empty
- a - contains zip for the web project (this is correct)
- b - empty
- s - seems to be a dump of all the projects source code (content of the dir that the .sln is in)