当前位置:首页 > Web开发 > 正文

一切正常 参考 Unable to install any tools using dotnet tool instal

2024-03-31 Web开发

凭据 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

技术图片

温馨提示: 本文由Jm博客推荐,转载请保留链接: https://www.jmwww.net/file/web/32392.html