昨天在使用安装ABP CLI的时候遇到安装不了的问题。如下:
Failed to install tool package 'Volo.Abp.Cli': Could not find a part of the path 'C:\Users\admin\.dotnet\tools\.store\.stage\0qd2mqpa.m45\Volo.Abp.Cli'.
Tool 'Volo.Abp.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.
解决方案:
把环境变量配置里面的MSBuildSDKsPath
干掉就可以了。如果不行就再重启一下。