当我尝试安装时 “ dotnet工具安装-g Microsoft.Web.LibraryManager.Cli”会引发错误。 我已经安装了最新的dotnet sdk。 VS代码中还安装了C#扩展
PS D:\DotNetCore\MvcMovie> dotnet tool install -g Microsoft.Web.LibraryManager.Cli error NU1101: Unable to find package microsoft.web.librarymanager.cli. No packages exist with this id in source(s): C:\Program Files\dotnet\sdk\NuGetFallbackFolderThe tool package could not be restored. Tool 'microsoft.web.librarymanager.cli' 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.
答案 0 :(得分:1)
尝试在命令中用 --version
指定工具版本,看下面的例子:
dotnet tool install --global Microsoft.Web.LibraryManager.Cli --version 2.1.113
您可以查看 Microsoft.Web.LibraryManager
here 的所有版本。