【发布时间】:2021-09-01 00:08:11
【问题描述】:
我安装了 .NET 5 SDK,但没有安装 Visual Studio。
每当我尝试执行工具安装时,例如dotnet tool install -g csharprepl,它总是会导致:
error NU1100: Unable to resolve 'csharprepl (>= 0.0.0)' for 'net5.0'.
error NU1100: Unable to resolve 'csharprepl (>= 0.0.0)' for 'net5.0/any'.
The tool package could not be restored.
Tool 'csharprepl' 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 tool.
* The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem.
* You mistyped the name of the tool.
在没有 Visual Studio 的情况下如何使用dotnet tool install?
【问题讨论】: