dotnet无法识别为cmdlet的名称 [英] dotnet is not recognized as the name of a cmdlet

查看:2816
本文介绍了dotnet无法识别为cmdlet的名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们已经下载并运行 DotNetCore.1.0.1-SDK.1.0.0.Preview2-003133-x64.exe 。关闭并重新打开命令提示符后,运行 dotnet 会得到以下输出。

We have downloaded and run DotNetCore.1.0.1-SDK.1.0.0.Preview2-003133-x64.exe. After having closed and reopened our command prompt, running dotnet gives the following output.


术语 dotnet不能识别为cmdlet,函数,脚本文件或可运行程序的名称。

The term 'dotnet' is not recognized as the name of a cmdlet, function, script file, or operable program.

我们尝试了以下操作:


  1. 卸载所有版本Visual Studio。

  2. 卸载所有版本的.NET Core。

  3. 修复C ++可再发行组件2015 x86& x64

  4. 重新启动计算机。

  5. 然后重新安装.NET Core SDK。

  1. Uninstall all versions of Visual Studio.
  2. Uninstall all versions of .NET Core.
  3. Repair C++ Redistributable 2015 x86 & x64
  4. Restart the computer.
  5. Then reinstall the .NET Core SDK.

这是 C:/ Program Files / dotnet 的内容p>

This is the contents of C:/Program Files/dotnet

host
  fxr
sdk
  1.0.0-preview2-003133
shared
  Microsoft.NETCore.App
swidtag
  Microsoft .NET Core 1.0.1 - SDK 1.0.0 Preview 2-003133 (x64).swidtag

我们的路径包括 C:\Program Files\dotnet\

推荐答案

再次遇到此问题后,我们在此处找到答案

After again coming across this problem, we found the answer here.

打开程序和功能,选择 Microsoft Visual C ++可再发行组件(x86),单击卸载,然后选择修复。修复它(以及x64版本,如果有的话)后,请重新安装或修复.NET Core SDK 1.0.1的安装。

Open Programs and Features, choose Microsoft Visual C++ Redistributable (x86), click Uninstall and then choose Repair. After repairing it (and the x64 version if you have it), reinstall or repair the installation of the .NET Core SDK 1.0.1.

这篇关于dotnet无法识别为cmdlet的名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆