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?
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.
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!
I fixed it by running the following command:
dotnet build
using command prompt within the project.
It actually needs "2.2.1nn", where "nn" are any integers. The latest 2.2.1nn at this time is 2.2.109. See: Issue-3124
.NET Core SDK .NET Core Runtime Compatible Visual Studio MSBuild Notes
2.1.5nn 2.1 2017 15 Installed as part of VS 2017 version 15.9
2.1.6nn 2.1 2019 16 Installed as part of VS 2019
2.2.1nn 2.2 2017 15 Installed manually
2.2.2nn 2.2 2019 16 Installed as part of VS 2019
3.0.1nn 3.0 (Preview) 2019 16 Installed manually
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.