I try to run dotnet tool install
in Azure DevOps and test the tool.
Locally
dotnet tool install dotnetsay -g
dotnetsay test
works seamlessly.
In Azure DevOps this script:
- task: CmdLine@2
displayName: 'Install dotnetsay'
inputs:
script: 'dotnet tool install dotnetsay -g'
- task: CmdLine@2
displayName: 'Run dotnetsay'
inputs:
script: 'dotnetsay test'
returns error
/home/vsts/work/_temp/8a35f36d-4eff-4541-9aae-cf3f063f9180.sh: line 1: dotnetsay: command not found
##[error]Bash exited with code '127'.
I've tried already 3 different tools:
with the same result.
Is there any additional command to make dotnet tool available for Azure DevOps?