Visual Studio 2019 未检测到.Net Core 3 pre-release 9 SDK

Visual Studio 2019 does not detect .Net Core 3 pre-release 9 SDK

我目前只安装了 .Net Core 3 pre-release 9,如果我想创建一个新的 ASP.Net 核心应用程序,它会告诉我以下内容。

我什至在设置中打开 Use previews of the .Net Core SDK 并确保 C:\Program Files\dotnet\ 位于我的 PATH 环境变量的最顶部。我也在使用 Visual Studio Version 16.2.4.

如果我输入 dotnet --info 它会显示以下内容:

您需要安装 VS2019 预览版,而不是 RTM,并且是最新的,才能在 VS 中使用 .NET Core 3.0 预览版:https://devblogs.microsoft.com/dotnet/announcing-net-core-3-0-preview-9/

.NET Core 3.0 is supported with Visual Studio 2019 16.3 Preview 3 and Visual Studio for Mac 8.3, which were also released today. Please upgrade to it for the best (and supported) experience with .NET Core 3.0 Preview 9. See Visual Studio 2019 16.3 release notes for more information.

We know that some folks have been successful using .NET Core 3.0 builds with Visual Studio 2019 16.2 and wonder why 16.3 is required. The short answer is that we only test .NET Core 3.0 with Visual Studio 2019 16.3 and have made many improvements and key fixes that are only in 16.3.