Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.Net Core 2.1 templates missing from VS2017

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?

like image 920
Lukos Avatar asked Jan 22 '18 14:01

Lukos


2 Answers

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.

like image 136
S.Serpooshan Avatar answered Sep 19 '22 14:09

S.Serpooshan


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.

like image 26
Martin Ullrich Avatar answered Sep 18 '22 14:09

Martin Ullrich