user1339253
user1339253

Reputation: 149

How to resolve "the current .NET SDK does not supporting targeting .NET Core 2.2"

So I get the error in the title when I'm working with a project I know has been created using core 2.2. However, I've looked into this and done the following things which I've found can be potential problems:

  1. Updated visual studio (2017) to the latest version.
  2. Obviously I've installed the 2.2 SDK (tried both 64 and 32 bit versions). When I run dotnet --version in PowerShell I'm shown that my current version is 2.2.202
  3. Activated "use previews of the .NET Core SDK" under tools->options->projects and solutions-> .NET Core, although this shouldn't be necessary since it's not a preview anymore...

When I right click a project and go to properties I'm unable to select .net core 2.2 under target framework. I've obviously tried restarting VS.

So far I've been unable to find any other possible causes. Do anyone have any idea what else I could possibly be missing?

Upvotes: 1

Views: 1693

Answers (1)

ghostbust555
ghostbust555

Reputation: 2049

Microsoft has messed up the latest version on 2.2 It only works with visual studio/ msbuild 2019 now.

Spent a good hour figuring this out, but uninstall 2.2.202 and install an older version and it will work fine!

Upvotes: 2

Related Questions