0
votes

This is not a duplicate of Visual Studio does not display .NET Core 2.2 in Target Framework dropdown because this question is about Visual Studio 2019.

I just installed Visual Studio 2019 Version 16.0.1

I have also installed .NET Core 2.2 SDKs..., as shown below:

Installed .NET SDKs

However when I open my project, Visual Studio 2019 still does not show .NET Core 2.2 in Target Framework.

enter image description here

What could be the problem?

1

1 Answers

0
votes

Meh... this is embarassing... I actually have global.json in my project root folder that specifies sdk version 2.1.

{
  "sdk": {
    "version": "2.1.401"
  }
}

Deleting this global.json file and restarting visual studio solves my issue.