我安装了NetCore 3.0 RTM SDK(x64),但无法在VisualStudio 2019(16.2.5)中定位它。
以下是我安装的运行时和SDK版本:
C:\Users\pauls>dotnet --list-runtimes
Microsoft.AspNetCore.All 2.1.2 [c:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.1.9 [c:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.1.11 [c:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.1.12 [c:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.1.13 [c:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.2.6 [c:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.2 [c:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.1.9 [c:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.1.11 [c:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.1.12 [c:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.1.13 [c:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.2.6 [c:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.0.0 [c:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.0.9 [c:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.1.9 [c:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.1.11 [c:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.1.12 [c:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.1.13 [c:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.2.6 [c:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 3.0.0 [c:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 3.0.0 [c:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
C:\Users\pauls>dotnet --list-sdks
2.1.202 [c:\Program Files\dotnet\sdk]
2.1.505 [c:\Program Files\dotnet\sdk]
2.1.700 [c:\Program Files\dotnet\sdk]
2.1.701 [c:\Program Files\dotnet\sdk]
2.1.801 [c:\Program Files\dotnet\sdk]
2.1.802 [c:\Program Files\dotnet\sdk]
2.2.301 [c:\Program Files\dotnet\sdk]
3.0.100 [c:\Program Files\dotnet\sdk]
我的PATH变量包括C:\Program Files\dotnet\
和C:\Users\pauls\.dotnet\tools
。我还修复了安装并重新启动,但没有任何乐趣。选择目标框架不包括针对新项目和现有项目的核心3.0。
有什么建议吗?
答案 0 :(得分:9)
仅Visual Studio 2019 16.3.x支持Core 3.0。
更新您的VS 2019,然后重试。