0

I just installed .net core 2.2 SDK, and activated the respective checkbox:

.net Core Settings Use Previews

This is my output of dotnet --list-sdks:

1.1.13 [C:\Program Files\dotnet\sdk]
2.1.202 [C:\Program Files\dotnet\sdk]
2.1.505 [C:\Program Files\dotnet\sdk]
2.1.602 [C:\Program Files\dotnet\sdk]
2.2.202 [C:\Program Files\dotnet\sdk]

But it doesn't show up in VS2017: .net versions

When I set the target to netcoreapp2.2 manually, I get:

NETSDK1045  The current .NET SDK does not support targeting .NET Core 2.2.  Either target .NET Core 2.1 or lower, or use a version of the .NET SDK that supports .NET Core 2.2.

I know there are a lot of other people having asked this question, but none of their steps helped in my case.

What else can I try?

rabejens
  • 7,594
  • 11
  • 56
  • 104

1 Answers1

1

You need to install the SDK 2.2.105, the 2.2.2xx SDK is for Visual Studio 2019/MS Build 16.x only.

magicandre1981
  • 27,895
  • 5
  • 86
  • 127
  • This did the trick. That should be documented somewhere... – rabejens Apr 04 '19 at 15:39
  • That worked for me as well. I was having the same issue after installing the latest version of VS2017 (15.9.11) and .Net Core 2.2 (2.2.202). Installing an older version of the .Net Core SDK (v2.2.103) worked a treat. – user1474992 Apr 04 '19 at 16:53