Tool 'coverlet.console' failed to install #1493
Unanswered
TerryChan2
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I use coverlet .console in cake build and already defined this #tool dotnet:?package=coverlet.console&version=6.0.0
The script can be executed successfully most of the time but occasionally it would encountered below error:
The tool package could not be restored.
error Tool 'coverlet.console' failed to install. This failure may have been caused by:
error * You are attempting to install a preview release and did not use the --version option to specify the version.
error * A package by this name was found, but it was not a .NET tool.
error * The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem.
error * You mistyped the name of the tool.
error For more reasons, including package naming enforcement, visit https://aka.ms/failure-installing-tool
build dotnet exited with 1
build Could not find any relevant files for tool 'coverlet.console'. Perhaps you need an include parameter?
error Error: Failed to install tool 'coverlet.console'.
If I rerun the script again, it could be successfully executed. Any idea about this issue?
Beta Was this translation helpful? Give feedback.
All reactions