Step 1 of this answer says Install Cake.CoreCLR NuGet package to your tools folder
. How do I do that?
Things I've tried:
> dotnet add package Cake.CoreCLR --version 0.38.4
Could not find any project in `current folder`.
Usage: dotnet add <PROJECT> package [options] <PACKAGE_NAME>
and
> dotnet tool install Cake.CoreCLR --version 0.38.4 -g
error NU1212: Invalid project-package combination for Cake.CoreCLR 0.38.4. DotnetToolReference project style can only contain references of the DotnetTool type
The tool package could not be restored.
Tool 'cake.coreclr' failed to install. This failure may have been caused by:
* You are attempting to install a preview release and did not use the --version option to specify the version.
* A package by this name was found, but it was not a .NET Core tool.
* The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem.
* You mistyped the name of the tool.
For more reasons, including package naming enforcement, visit https://aka.ms/failure-installing-tool