If you have global.json added to your project, you have to update the SDK version to 2.0.0, which is shown as follows:
{ "sdk": { "version": "2.0.0" } }