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?
5
votes
So what is you problem? Simply install .net Core 2.2 SDK
- vasily.sib
Have you tried this devblogs.microsoft.com/dotnet/…
- Peter Kalef ' DidiSoft
@vasily.sib i have installed .net ccore 2.2 SDK, but it does not show in project properties targeting framework.
- Ali
If you're using VS2017, make sure you use .NET Core SDK 2.2.106 or lower, as 2.2.202 and higher only work with VS2019 right now.
- serpent5
Thanks @KirkLarkin, 2.2.1.06 worked for me.
- Ali
4 Answers
4
votes
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.
1
votes
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!
1
votes
0
votes
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