成功安装后未找到 .NET SDK
.NET SDK not found after successful install
我安装了 Visual Studio 2019 16.8.3(从 16.8.2 升级)。
升级后,我无法打开任何.NET Core 相关项目,出现以下错误:
The project file cannot be opened. Unable to locate the .NET SDK. Check that it is installed and that the version specified in global.json (if any) matches the installed version.
所以我决定分别安装.Net Core 3.1 SDK和.Net 5 SDK。
安装成功后,我还没有安装任何SDK。
我该怎么办(除了 VS 全面修复)?
根据这个 good article,SDK 的 x64 和 x86 版本不能同时激活:
The problem here is that if you have both 32 bit and 64 bit versions of the SDK installed, the first one found wins. And only one version of the SDK (32 bit or 64 bit) can be active at any one time.
Windows和Visual Studio似乎是通过掷骰子来选择SDK版本的...
所以,我通过在 PATH 环境变量 中将 x64 目录上移 一级解决了这个问题,现在一切正常
我安装了 Visual Studio 2019 16.8.3(从 16.8.2 升级)。
升级后,我无法打开任何.NET Core 相关项目,出现以下错误:
The project file cannot be opened. Unable to locate the .NET SDK. Check that it is installed and that the version specified in global.json (if any) matches the installed version.
所以我决定分别安装.Net Core 3.1 SDK和.Net 5 SDK。
安装成功后,我还没有安装任何SDK。
我该怎么办(除了 VS 全面修复)?
根据这个 good article,SDK 的 x64 和 x86 版本不能同时激活:
The problem here is that if you have both 32 bit and 64 bit versions of the SDK installed, the first one found wins. And only one version of the SDK (32 bit or 64 bit) can be active at any one time.
Windows和Visual Studio似乎是通过掷骰子来选择SDK版本的...
所以,我通过在 PATH 环境变量 中将 x64 目录上移 一级解决了这个问题,现在一切正常