VS2017:目标框架下拉列表不显示.NET Core 2.1选项

编程入门 行业动态 更新时间:2024-10-26 02:31:40
本文介绍了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 Core 2.1作为可用的目标框架之一.有人可以帮助我了解我在这里缺少什么.

I was expecting .NET Core 2.1 as one of the target framework available if I create console or asp 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. www.microsoft/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. www.microsoft/net/download/dotnet-core/sdk-2.1.300-preview1 (this includes required Runtime already)

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

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

更多推荐

VS2017:目标框架下拉列表不显示.NET Core 2.1选项

本文发布于:2023-11-14 04:51:12,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1586270.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:框架   选项   目标   列表   NET

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!