将Visual Studio 2017与.Net Core SDK 3.0结合使用 [英] Use Visual Studio 2017 with .Net Core SDK 3.0

查看:683
本文介绍了将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?

我已经下载了。 NET Core 3.0 SDK从 dotnet.microsoft.com 并使用 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 Core 3.0的.NET SDK版本。

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:

带有.Net Core SDK 2.0的Visual Studio 2017

带有.Net Core SDK 2.1的Visual Studio 2017

推荐答案

。在VS 2017中:您只需转到工具选项项目和解决方案 .NET Core ,然后选中使用.NET Core SDK的预览

.In VS 2017: You can just go to the ToolsOptionsProject and Solutions.NET Core and then check Use previews of the .NET Core SDK

这篇关于将Visual Studio 2017与.Net Core SDK 3.0结合使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆