dotnet tool install:Failed to install tool package 'ZKEACMS.Publisher': Could not find a part of the path 'C:\Users\Christer\.dotnet\tools\.store\.stage\0qd2mqpa.m45\ZKEACMS.Publisher'
问题
按照 ZKEACMS 运行命令
dotnet tool install --global ZKEACMS.Publisher
提示
Failed to install tool package 'ZKEACMS.Publisher': Could not find a part of the path 'C:\Users\Christer\.dotnet\tools\.store\.stage\0qd2mqpa.m45\ZKEACMS.Publisher'. Tool 'ZKEACMS.Publisher' 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.
解决办法
我电脑上已经卸载dotnet SDK 2.2.207,但环境变量MSBuildSDKsPath的值还是C:\Program Files\dotnet\sdk\2.2.207
删除环境变量中的MSBuildSDKsPath,一切正常
参考
Unable to install any tools using dotnet tool install #11440
学习,以记之。如有错漏,欢迎指正
作者:冯子武
出处:http://www.cnblogs.com/Zev_Fung/
本文版权归作者和博客园所有,欢迎转载,转载请标明出处。
如果博文对您有所收获,请点击下方的 [推荐],谢谢