.Net Core - Publish Artifact Task
The code below is generating Published Artifacts in a drop folder but as a zip file. And this task works on only .Net core projects.
- task: DotNetCoreCLI@2
displayName: 'dotnet publish'
inputs:
command: 'publish'
publishWebProjects: false
projects: 'src/myproj/*.csproj'
arguments: -o $(build.artifactStagingDirectory)
If we add zipAfterPublish: false
property to inputs, we can avoid zipping artifacts as described here
Asp.Net - Publish Artifact Task
The code below is the Asp.Net version of the above
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact'
inputs:
PathtoPublish: '$(build.artifactstagingdirectory)'
ArtifactName: '$(Parameters.ArtifactName)'
condition: succeededOrFailed()
While we can avoid zipping artifacts in .Net Core, there isn't any property to add for this in Asp.Net version.
So, how can i avoid zipping artifacts in Asp.Net version of Publish Artifact task?