Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The current .NET SDK does not support targeting .NET Core 2.2

I am working on asp.net core 2.2.I am using visual studio 2017.When i create the .net core web application, then interface gives an error,that current sdk does not supported targeting .net core 2.2? And when i go to project properties, then there is not targeting framework .net core 2.2 in targeting framework lists?

like image 727
Ali Avatar asked Apr 10 '19 06:04

Ali


2 Answers

Install .NET Core 2.2 SDK from here.

Note, as per Kirk's and Marc's comments, you probably need to use v2.2.106.

like image 70
Ilian Avatar answered Sep 20 '22 01:09

Ilian


I found the working solution for this problem here

All credit to Vijay Ramakrishnan

Issue details: 2.1.6xx & 2.2.2xx version of the sdks are only supported on Visual Studio 2019. VS 2017 needs 2.1.5xx & 2.2.1xx versions of the sdk.

How to fix the issue? Install 2.1.5xx version of the SDK if you are targetting a 2.1 app Install 2.2.1xx version of the SDK if you are targetting a 2.2 app.

You can get the install links from here - https://dotnet.microsoft.com/download/dotnet-core/2.2

Hope this helps!

like image 32
phifi Avatar answered Sep 24 '22 01:09

phifi