dotnet无法识别为cmdlet的名称 [英] dotnet is not recognized as the name of a 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.
我们尝试了以下操作:
- 卸载所有版本Visual Studio。
- 卸载所有版本的.NET Core。
- 修复C ++可再发行组件2015 x86& x64
- 重新启动计算机。
- 然后重新安装.NET Core SDK。
- Uninstall all versions of Visual Studio.
- Uninstall all versions of .NET Core.
- Repair C++ Redistributable 2015 x86 & x64
- Restart the computer.
- 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屋!