.Net Core 2.1 templates missing from VS2017

2019-06-16 15:32发布

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.

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

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.

Can anyone help please?

3条回答
戒情不戒烟
2楼-- · 2019-06-16 15:54

For .NET Core 2.1, you need Visual Studio version 15.7 or higher. (check it from Help menu > About Microsoft Visual Studio). So, first ensure you have update your visual studio.

Now, to add .NET Core 2.1 (or other newer templates) to visual studio, you need to install the Latest .Net Core SDK from here.

查看更多
放我归山
3楼-- · 2019-06-16 15:58

Update Visual Studio to version 15.6.0.

查看更多
我欲成王,谁敢阻挡
4楼-- · 2019-06-16 16:05

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.

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.

You can download 2.2.0 SDK previews from https://github.com/dotnet/cli.

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.

查看更多
登录 后发表回答