Azure DevOps - cannot run installed dotnet tool

0 votes

I tried to run the dotnet tool installed in Azure DevOps and test the tool.

Locally

dotnet tool install dotnetsay -g
dotnetsay test

It works seamlessly without any problem.

When I run this script in Azure DevOps.

  - task: CmdLine@2
    displayName: 'Install dotnetsay'
    inputs:
      script: 'dotnet tool install dotnetsay -g'

  - task: CmdLine@2
    displayName: 'Run dotnetsay'
    inputs:
      script: 'dotnetsay test'

It returns this 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 3 different tools:

all of them gave the same result 

Is there any additional command to make the dotnet tool available for Azure DevOps?

Mar 27, 2022 in Other DevOps Questions by Kichu
• 19,040 points
511 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Other DevOps Questions

0 votes
1 answer
0 votes
0 answers

Azure API Management devops resource kit - creator tool

To generate arm templates to use in ...READ MORE

Mar 18, 2022 in Other DevOps Questions by Kichu
• 19,040 points
636 views
0 votes
0 answers

Azure Devops - Test Run Managment : resuming in-progress test

I am trying to figure out how ...READ MORE

Apr 2, 2022 in Other DevOps Questions by Kichu
• 19,040 points
1,303 views
0 votes
0 answers
0 votes
0 answers
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP