-
Currently seeing "error NU1301: Unable to load the service index for source: The tool package could not be restored.
For more reasons, including package naming enforcement, visit https://aka.ms/failure-installing-tool " After most recent release, is anyone else seeing this? Failing in my CI/CD pipeline and locally. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I just tried it myself. I install the tool with
Then I'm able to execute it with:
I also tried to use it in an Azure DevOps pipeline, this also works: - task: DotNetCoreCLI@2
displayName: 'Install ReportGenerator'
inputs:
command: custom
custom: tool
arguments: 'install --global dotnet-reportgenerator-globaltool --version 5.1.10' |
Beta Was this translation helpful? Give feedback.
-
I ended up needing to add a source directly: dotnet tool install --global dotnet-reportgenerator-globaltool --ignore-failed-sources --version 5.1.10 --add-source https://api.nuget.org/v3/index.json this worked! |
Beta Was this translation helpful? Give feedback.
I ended up needing to add a source directly:
dotnet tool install --global dotnet-reportgenerator-globaltool --ignore-failed-sources --version 5.1.10 --add-source https://api.nuget.org/v3/index.json
this worked!