Installing tool to custom tool-path fails when trying to access it
See original GitHub issueI’m trying to install a custom tool during azure pipeline however if fails to pick up the tool. I’ve tried several options but they all fail at execution stage. I’m trying to use the tool-path because without it step 2 fails with cannot find the executable
Steps to reproduce
- task: DotNetCoreCLI@2
displayName: 'Install Stryker'
continueOnError: true
inputs:
command: custom
custom: tool
vstsFeed: ${{ parameters.Build_Vsts_Feed }}
arguments: 'install dotnet-stryker --tool-path ~/tools'
- script: |
cd ${{ parameters.Unit_Test_Folder }}
dotnet ~/tools/stryker --project-file=${{ parameters.Stryker_Project }}.csproj
displayName: 'Run Stryker tests against ${{ parameters.Stryker_Project }}'
Expected behavior
Tool should install and be executable
Actual behavior
Output from Installation task
sr/bin/dotnet tool install dotnet-stryker --tool-path ~/tools
You can invoke the tool using the following command: dotnet-stryker |
Tool 'dotnet-stryker' (version '0.11.0') was successfully installed.
Output from execution task
No executable found matching command "dotnet-/home/vsts/tools/stryker"
No matter how i define tool-path it does the above behaviour of merging dotnet- to the path rather than /home/vsts/tools/dotnet-stryker
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Problems with custom tool file or data? - Industrial Forum
I am trying to create a custom tool profile for a small ... I get a warning message that says "Problems with custom...
Read more >"Unable to execute the tool" when clicking on a Tool ...
Modify the 'Registered Tool Path' in the Registry. Press WINDOWS-R on the keyboard to bring up the Run window, enter REGEDIT.EXE and click...
Read more >Error when creating toolpath - Fusion 360 - CAM
Basic troubleshooting technique would be to start with defining a simple toolpath - the outline cut for instance and then adding one object/path ......
Read more >dotnet tool install command - .NET CLI
To install a global tool in a custom location, use the --tool-path option. To install a local tool, omit the --global and --tool-path...
Read more >Troubleshooting Custom Toolchain Validation - MATLAB & ...
Use your system setup to add the toolchain installation directory to system environment path. Otherwise, replace '' with the absolute path of the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@wli3 can you take a look?
@wli3 Thank you for the response. I can confirm it’s now working for me. Much appreciated