Azure Build pipeline fails with error: Unable to properly unload Workflow Project

Here is my yaml file:
trigger:

  • main
    variables:
  • name: agent.preferPowerShellOnContainers
    value: ‘True’

pool:
vmImage: windows-2019

container:
image: uipathbotregistry.azurecr.io/uipathrobotimage:14
endpoint: uipathbotregistry-connection

steps:

  • script: C:\UiPath\UiRobot.exe pack $(Buid.SourcesDirectory)\project.json -o $(Build.ArtifactStagingDirectory)\ -v 1.0.$(Build.BuildNumber)
    displayName: ‘Build the artifact’

and here is the build result:

"C:\Windows\system32\cmd.exe" /D /E:ON /V:OFF /S /C "CALL "C:\__w\_temp\becce566-67f5-45b9-982c-deea56db19e6.cmd""

Publish failed: The project 'C:\__w\1\s\project.json' could not be opened: Unable to properly unload Workflow Project.

#json{

"ProjectPath": "C:\\__w\\1\\s\\project.json"

}#json

Any ideas as to why I get this error?