.NET Core 2.2 Can’t be Selected In Visual Studio Build Framework

I have same problem. I am trying fix this issue about one day. Finally I figuret out.
My VS version is 15.9.11 and Community Edition.

Issue details:
2.1.6xx & 2.2.2xx version of the sdks are only supported on Visual Studio 2019. VS 2017 needs 2.1.5xx & 2.2.1xx versions of the sdk.

How to fix the issue?
Install 2.1.5xx version of the SDK if you are targetting a 2.1 app
Install 2.2.1xx version of the SDK if you are targetting a 2.2 app.

The link is here

Edit: The direct link to downloadable installers is https://dotnet.microsoft.com/download/dotnet-core/2.2. As noted above, do check which SDK version is compatible with Visual Studio 2019 and/or Visual Studio 2017.

For example, if you want to use .NET version 2.2.7 in Visual Studio 2017 (v15.9), the only SDK version that works is SDK 2.2.109. To use SDK 2.2.206 you must have Visual Studio 2019 (v16.0). To use SDK 2.2.402 you must have Visual Studio 2019 (v16.2).

Leave a Comment