have tried upgrading to the professional version of visual studio 2017 v 15.6.0 (Preview 7.0)
and installed aspnetcore-runtime-2.1.0-preview1-final-win-x64 and .net
Check to make sure you don't have global.json
file in your project root folder that forces your project to use .NET SDK 2.1 only.
If you have this global.json file, delete it, and then restart visual studio.
As embarrassing as it might sound, I spent almost an hour tinkering and I even downloaded several SDK version to force it to use 2.2