“无法找到安装的任何已安装的.NET Core SDK”。错误
我正在尝试学习编程,但我什至无法使用Visual Studio做任何事情 “找不到安装的.NET Core SDK 您的意思是运行.NET Core SDK命令吗?从以下方式安装.NET Core SDK https://aka.ms/dotnet-download 我已经安装了.NET Core SDK和我已经重新安装了大约5次,每种都尝试使用新的东西,例如使用VSCODE不打开,打开它,重新启动我的PC,检查表格并且不起作用,这是我可以想到的最后一个选择。请帮助我解决这个问题!
I am trying to learn to program but I cant even use visual studio to do anything because when I type "dotnet new console" I keep getting the error:
"It was not possible to find any installed .NET Core SDKs
Did you mean to run .NET Core SDK commands? Install a .NET Core SDK from:
https://aka.ms/dotnet-download" I have already installed .NET Core SDKs and I have reinstalled it about 5 times, each trying something new like installing with vscode not open, with it open, rebooting my pc, checked forms and it does not work, This is my last option I can think of. Please help me fix this! I don't know if it would make a difference but I'm learning c#.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当两个版本安装了32位和64位时,我遇到了这个问题。
这就是我修复的方式:
打开命令提示符并运行命令“ where dotnet”。如果输出应在32位版本的顶部显示64位版本(如果看到X86),请执行以下操作(在Windows 10中):1。
搜索以编辑“开始菜单”中的环境变量,然后单击“编辑环境变量“
重新打开命令提示符和重新运行命令“ dotnet“以确保64位版本在输出中首先出现。
I encountered this issue when both versions 32-bit and 64-bit were installed.
This is how I fixed it:
Open command prompt and run the command "where dotnet". If the output should show the 64-bit version on top of the 32-bit version (if you see x86), do the following (in Windows 10):
1.search for edit the environment variable in start menu search bar and click "Edit the environment variables"
Re-open the command prompt and re-run command "where dotnet" to make sure the the 64-bit version comes first in the output.