目标框架下拉列表不显示

目标框架下拉列表不显示

本文介绍了VS2017:目标框架下拉列表不显示.NET Core 2.1选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了VS2017 Enterprise 15.6.4.最近从官方网站

I have already installed VS2017 Enterprise 15.6.4. Recently installed .NET Core 2.1.101 SDK from official site

如果我创建控制台或asp.net核心应用程序,我期望.NET Core 2.1作为可用的目标框架之一.有人可以帮助我了解我在这里缺少什么.

I was expecting .NET Core 2.1 as one of the target framework available if I create console or asp.net core application. Can someone help me understanding what I am missing here.

根据评论中的建议,我安装了15.7预览版2.仍然没有运气和同样的问题.

As suggested in comments, I installed 15.7 preview 2. Still no luck and same issue.

推荐答案

我也遇到了同样的问题.我通过在.NET Core 2.1的Runtime中安装正确的SDK来解决了这个问题.

I have faced the same problem. I solved this by installing the right SDKs with Runtime for .NET Core 2.1.

基本上要从VS Preview运行/创建2.1项目,您需要安装"2.1.300"(不是2.1.4).NET Core SDK和Runtime. https://www.microsoft.com/net/download/dotnet-core/sdk-2.1.300-preview1 (这已包括必需的运行时)

Basically to run/create 2.1 projects from VS Preview, you need to install the "2.1.300" (not 2.1.4) .NET Core SDKs and Runtime. https://www.microsoft.com/net/download/dotnet-core/sdk-2.1.300-preview1 (this includes required Runtime already)

对此误导性很好的解释是我在这里找到的版本 https://github.com/dotnet/cli/issues/8309 (dasMulli在2月24日发表评论).

The good explanation of this misleading with versions i found here https://github.com/dotnet/cli/issues/8309 (dasMulli commented on Feb 24).

这篇关于VS2017:目标框架下拉列表不显示.NET Core 2.1选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-06 14:17