“无法找到安装的任何已安装的.NET Core SDK”。错误

发布于 2025-01-27 04:52:08 字数 364 浏览 2 评论 0原文

我正在尝试学习编程,但我什至无法使用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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

巷子口的你 2025-02-03 04:52:08

当两个版本安装了32位和64位时,我遇到了这个问题。

这就是我修复的方式:
打开命令提示符并运行命令“ where dotnet”。如果输出应在32位版本的顶部显示64位版本(如果看到X86),请执行以下操作(在Windows 10中):1。

搜索以编辑“开始菜单”中的环境变量,然后单击“编辑环境变量“

  1. 单击“环境变量”
  2. 在“系统变量”下查找“路径”条目
  3. select select“ path”条目,然后单击
  4. dotnet的64位输入(看起来类似于此“ C:\ program Files) \ dotnet“要位于其他32位dotnet的顶部(看起来类似于此“ C:\ Program Files x(86)\ dotnet”
  5. 单击“确定”,然后关闭窗口

重新打开命令提示符和重新运行命令“ 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"

  1. click "Environment Variables"
  2. look for "Path" entry under "System variables" list
  3. Select "Path" entry then click edit
  4. Move up the 64-bit entry of dotnet (looks similar to this "c:\Program Files\dotnet" to be on top of the other 32-bit dotnet (looks similar to this "c:\Program Files x(86)\dotnet"
  5. click Ok and close the window

Re-open the command prompt and re-run command "where dotnet" to make sure the the 64-bit version comes first in the output.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文