码迷,mamicode.com
首页 > Web开发 > 详细

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'

时间:2020-01-03 09:11:32      阅读:131      评论:0      收藏:0      [点我收藏+]

标签:mis   pac   option   bec   this   解决办法   msbuild   ase   net   

问题

按照 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

技术图片

 

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'

标签:mis   pac   option   bec   this   解决办法   msbuild   ase   net   

原文地址:https://www.cnblogs.com/Zev_Fung/p/12142871.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!