How to update Visual Studio 2017 Template from ASP.NET Core 2.0 to 2.1

Tabby picture Tabby · Jul 23, 2018 · Viewed 13.1k times · Source

I have installed Visual Studio 2017 Community Version 15.7.5 2 days back and everything is up-to-date but the version of ASP.Net Core is 2.0 and I need it to be 2.1. Current version 2.0 I am unable to find a way to update it to version 2.1. I have also searched the internet but there are ways to upgrade projects not to update this. So any ideas or help would be appreciated

Answer

smn.tino picture smn.tino · Jul 23, 2018

It looks like the SDK for .NET Core 2.1 is not installed. I have recently faced the same issue after .NET Core 2.1 was released.

To solve it, download and install the SDK for .NET Core 2.1 following the steps below. Also, note that you need to run Visual Studio 2017 15.7 or newer version, as specified in the .NET Core 2.1 download page.

  1. Close all running Visual Studio instances.
  2. Download the .NET Core SDK from the Microsoft download page. At the time of writing this answer, you will find version 2.1 to be the latest available.
  3. Run the installer and follow the installation steps.
  4. Run Visual Studio: now you should be able to create .NET Core applications targeting version 2.1.