VS2017 中缺少 .Net Core 2.1 模板 [英] .Net Core 2.1 templates missing from VS2017

查看:52
本文介绍了VS2017 中缺少 .Net Core 2.1 模板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了 VS2017 (15.5.4) Professional,今天我安装了 .Net Core SDK 2.1.4,但在 VS 的新建项目"对话框中看不到任何核心模板​​.

I have VS2017 (15.5.4) Professional already installed and today I installed .Net Core SDK 2.1.4 but I cannot see any Core templates in the New Project dialog in VS.

如果我在 Powershell 中运行 dotnet --version,它会正确显示我安装了 2.1.4

If I run dotnet --version in Powershell, it correctly shows me 2.1.4 installed

我已经删除了 Windows 10 机器上的所有 Core 安装,重新安装了 2.1.4,在 VS 上运行修复并尝试了 devenv/installvstemplates 但似乎没有任何效果.

I have removed all Core installations on my windows 10 machine, reinstalled 2.1.4, run the repair on VS and also tried devenv /installvstemplates but nothing seems to work.

有人可以帮忙吗?

推荐答案

对于任何模板:确保 VS 具有必要的组件,确保通过 Visual Studio 安装程序安装跨平台开发工作负载.

For any templates: Make sure VS has the necessary components, make sure that the cross platform development workload is installed through the Visual Studio Installer.

SDK 2.1.* 仅包含 2.0.* 运行时.在撰写本文时,.NET Core 2.1 还没有公开预览版.

The SDK 2.1.* only contains the 2.0.* runtimes. At the time of writing, there has been no public preview release for .NET Core 2.1.

您可以从 https://github.com/dotnet/cli.

请注意,命名可能会在不久的将来发生变化,以避免混淆并保持 SDK 和运行时主要和次要版本同步 - 请参阅 https://github.com/dotnet/designs/pull/29.

Note that the naming may change in the near future in order to avoid confusion and keep the SDK and Runtime major and minor versions in sync - see https://github.com/dotnet/designs/pull/29.

这篇关于VS2017 中缺少 .Net Core 2.1 模板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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