将 Visual Studio 2017 与 .Net Core SDK 3.0 结合使用
如何在 Visual Studio 2017 中打开 .Net Core 3.0
项目?
How Can I open .Net Core 3.0
project in Visual Studio 2017?
我已经从 dotnet.microsoft.com 下载了 .NET Core 3.0 SDK 并使用文件夹中的 dotnet new
命令.
I have downloaded the .NET Core 3.0 SDK from dotnet.microsoft.com and created new project with dotnet new
command in a folder.
构建 C# 项目显示错误:
Building C# project shows error:
当前的 .NET SDK 不支持面向 .NET Core 3.0.任何一个以 .NET Core 2.1 或更低版本为目标,或使用 .NET SDK 版本支持.NET Core 3.0.
The current .NET SDK does not support targeting .NET Core 3.0. Either target .NET Core 2.1 or lower, or use a version of the .NET SDK that supports .NET Core 3.0.
我检查过了,但在我的情况下不起作用:
I checked it but it doesn't work in my case:
.在 VS 2017 中:您可以直接转到 Tools → Options → Project和解决方案 → .NET Core 然后检查使用 .NET Core SDK 的预览
.In VS 2017: You can just go to the Tools → Options → Project and Solutions → .NET Core and then check Use previews of the .NET Core SDK