Open
Description
New issue checklist
- I searched for existing GitHub issues
- I read pipeline troubleshooting guide
- I checked how to collect logs
Task name
DotNetCoreCLI
Task version
2.247.3
Issue Description
DotNetCoreCLI@2
zipAfterPublish
set to true
confuses things: it removes the produced ZIP file and leaves the ZIP source files in place.
Environment type (Please select at least one enviroment where you face this issue)
- Self-Hosted
- Microsoft Hosted
- VMSS Pool
- Container
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
windows-latest
Relevant log output
C:\Program Files\dotnet\dotnet.exe" publish D:\a\1\s\app\Service.csproj --configuration Release --no-restore --no-build --output D:\a\1\a\app_service
...
##[debug]Zip Source: D:\a\1\a\app_service
##[debug]Zip arguments: Source: D:\a\1\a\app_service , target: D:\a\1\a\app_service.zip
##[debug]Successfully created archive D:\a\1\a\app_service.zip
##[debug]rm -rf D:\a\1\a\app_service
##[debug]removing directory D:\a\1\a\app_service
Subsequent task:
ls D:\a\1\a
========================== Starting Command Output ===========================
app_service
Full task logs with system.debug enabled
No response
Repro steps
- task: DotNetCoreCLI@2
displayName: Publish (dotnet)
inputs:
command: 'publish'
modifyOutputPath: false
zipAfterPublish: true
publishWebProjects: false
arguments: '--configuration Release --no-restore --no-build --output $(Build.ArtifactStagingDirectory)/app_service'
projects: ...