16

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?

Tonto
  • 2,900
  • 3
  • 25
  • 34

1 Answers1

9

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.

will.skyward
  • 122
  • 1
  • 13
    .Net core 2.2 is no longer in preview as per my knowledge so why do we have to enable the preview? – Andy Mar 12 '19 at 00:17
  • 4
    I have this checkbox checked but .net core 2.2 still doesn't show up. – rabejens Apr 04 '19 at 13:17
  • 2
    Have the same problem... enabling this does not show up 2.2. Even more:msbuild can't target 2.2 and says .NET SDK does not support targeting Net core 2.2 while i have 2.2.3 installed – Tom Tavernier Apr 05 '19 at 09:03
  • 4
    Not only is 2.2 not a preview, it doesn't make my error go away even after a restart – Mario Apr 05 '19 at 21:07
  • 12
    Another issue with these symptoms is that the 2.2.2xx SDK is not supported in VS 2017. You will need the 2.2.1xx SDK for VS 2017. See also this answer: https://stackoverflow.com/a/55529011/1509 – Daniel Plaisted Apr 08 '19 at 18:58
  • 1
    Thank you Daniel, your answer helped me after 2+ hours of headaches when upgrading from 2.1 to 2.2!! – J. Doe Apr 09 '19 at 11:34
  • The answer from @DanielPlaisted worked for me too. Once I installed SDK v 2.2.1xx, then VS2017 was able to build ok. – Rob Bowman Apr 11 '19 at 13:05
  • This has now moved to `Environment -> Preview Features` – joshcomley Sep 08 '19 at 11:21