“Microsoft.NET.Sdk” 未找到 [Visual Studio 2022]

huangapple go评论80阅读模式
英文:

"Microsoft.NET.Sdk" not found [Visual Studio 2022]

问题

我使用Windows 11,刚刚开始学习C#,并观看了有关Visual Studio设置的教程。当我尝试打开一个预生成的C#项目文件时,出现了错误。

“Microsoft.NET.Sdk” 未找到 [Visual Studio 2022]

我已经尝试了很多方法并进行了搜索,但没有什么真正起作用。

“Microsoft.NET.Sdk” 未找到 [Visual Studio 2022]

我查看了这篇帖子,:

这位用户遇到了与我相同的问题,解决方法是获取**.NET Core Workload**,但对我来说没有显示出来

“Microsoft.NET.Sdk” 未找到 [Visual Studio 2022]

英文:

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.

“Microsoft.NET.Sdk” 未找到 [Visual Studio 2022]

I already tried a lot of stuff and searched up but nothing really worked for me.

“Microsoft.NET.Sdk” 未找到 [Visual Studio 2022]

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.

“Microsoft.NET.Sdk” 未找到 [Visual Studio 2022]

答案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

https://github.com/dotnet/installer/issues/12616

huangapple
  • 本文由 发表于 2023年4月4日 04:26:15
  • 转载请务必保留本文链接:https://go.coder-hub.com/75923513.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定