英文:
"Microsoft.NET.Sdk" not found [Visual Studio 2022]
问题
我使用Windows 11,刚刚开始学习C#,并观看了有关Visual Studio设置的教程。当我尝试打开一个预生成的C#项目文件时,出现了错误。
我已经尝试了很多方法并进行了搜索,但没有什么真正起作用。
我查看了这篇帖子,:
这位用户遇到了与我相同的问题,解决方法是获取**.NET Core Workload**,但对我来说没有显示出来。
英文:
I am on Windows 11 and just started out on learning C# and watched a tutorial for a Visual Studio setup. I have the problem when I am trying to open a pre generated C# Project file, that an error shows up.
I already tried a lot of stuff and searched up but nothing really worked for me.
I looked up and saw that in this post
:
the guy had the same problem as me and the solution to that was to just get The .NET Core Workload but it doesn't show up for me.
答案1
得分: 2
我在最近更新了VS 2022后遇到了相同的问题。通过删除以下路径的所有内容解决了它:
C:\Program Files (x86)\dotnet
https://github.com/dotnet/installer/issues/12616
英文:
I had the same issue after updating VS 2022 recently. Fixed it by deleting all contents from
C:\Program Files (x86)\dotnet
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论