Skip to content

Publish task consistently failing with dotnet sdk version 10.0.100. It worked fine with sdk version 9.0.306 #13387

@manishpatel42

Description

@manishpatel42

Description

Publish function app task is consistently failing on newer dotnet sdk version (10.0.100). We have pull of public agents and agents that have older version of dotnet sdk (9.0.306), it will work just fine.

It's consistently failing on remove directory step. check out below snippet. Ther are not other running processes. Unless, if zipping is running operation in parallel but reporting successful before finishing tasks in background.

Image

Platforms affected

  • Azure DevOps
  • GitHub Actions - Standard Runners
  • GitHub Actions - Larger Runners

Runner images affected

  • Ubuntu 22.04
  • Ubuntu 24.04
  • Ubuntu Slim
  • macOS 13
  • macOS 13 Arm64
  • macOS 14
  • macOS 14 Arm64
  • macOS 15
  • macOS 15 Arm64
  • macOS 26 Arm64
  • Windows Server 2019
  • Windows Server 2022
  • Windows Server 2025

Image version and build link

Image: windows-2025
Version: 20251125.122.1

Is it regression?

Image: windows-2025 Version: 20251102.77.1

Expected behavior

publish task should not fail on directory remove step.

Actual behavior

publish task is failing on directory remove step. It was working fine until agents were updated to dotnet sdk 10.0.100.

Repro steps

Publish function app with larger dlls

  • task: DotNetCoreCLI@2
    displayName: 'Publish Function App'
    inputs:
    command: publish
    publishWebProjects: false
    projects: |
    **/*Functions.csproj
    arguments: '--configuration $(buildConfiguration) --output $(build.artifactstagingdirectory)'

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions