Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The Current .Net SDK does not support targeting .Net Core 2.2 Target .Net Core 2.1 or Lower [duplicate]

I have some projects in the preview version of .net core 2.2 preview 3. It was working fine until i updated my VS Studio Community Edition to Version 15.9.2. After that targeting .net core 2.2 preview is no longer possible. When i do dotnet --list-sdks I get a list of the SDKs installed including 2.2.100-preview3.

SDKs Installed

After updating VS Studio, the list now only shows VS Set Target Framework

I have followed similar questions but could not resolve the issue. Any pointers?

like image 216
Tonto Avatar asked Nov 28 '18 07:11

Tonto


People also ask

How do I target net SDK in Visual Studio?

NET SDK version, you also need to set the option to enable previews in Visual Studio. Go to Tools > Options > Environment > Preview Features, and make sure that Use previews of the . NET Core SDK is checked.

Does .NET SDK include .NET core?

The software development kit (SDK) includes everything you need to build and run . NET Core applications, using command-line tools and any editor (like Visual Studio). The runtime includes everything you need to run . NET Core applications.

What is my current .NET SDK version?

You can see both the SDK versions and runtime versions with the command dotnet --info .

How do I change my target framework to .NET standard?

In Visual Studio select Analyze and then Portability Analyzer Settings. In the General Settings window, select . NET Standard 2.0 under Target Platforms, and then choose OK.


1 Answers

https://developercommunity.visualstudio.com/content/problem/387549/net-22-loast-afte-upgrading-to-1592.html

seems that the latest release turns off the use of preview, "Use previews of the .NET Core SDK" option under menu -> Tools -> Options -> Projects and Solutions -> .NET Core

go here to turn it back on.

like image 56
will.skyward Avatar answered Oct 06 '22 22:10

will.skyward