Did you mean to run dotnet SDK commands

把所有的net coresdk,runtime,hosting通通卸载重新安装了2.1.1版本,发现再运行dotnet命令就是下面信息:

C:\Users\Administrator>dotnet --version
Did you mean to run dotnet SDK commands? Please install dotnet SDK from:
  http://go.microsoft.com/fwlink/?LinkID=798306&clcid=0x409

可以确定刚才是安装了的:

20191114-version-list.png

看了下系统环境变量

20191114-enviroment.png

原来使用的是x86下的,加上了x64下的启动目录,顺序要放在x86之前,重启电脑后ok。

20191114-enviroment-ok.png

C:\Users\Administrator>dotnet --version
2.1.301

猜你喜欢

转载自www.cnblogs.com/ricolee/p/not-found-dotnet-command.html