VS2017缺少.Net Core 2.1模板 [英] .Net Core 2.1 templates missing from VS2017
问题描述
我已经安装了VS2017(15.5.4)Professional,今天我安装了.Net Core SDK 2.1.4,但是在VS的新建项目对话框中看不到任何Core模板。
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 Installer安装了跨平台开发工作负载。
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屋!