I have installed ASP.NET Core 2.1 but even though I have created a new ASP.NET Core Web Application using ASP.NET Core 2.1 with
ASP.NET Core 2.1
ASP.NET Core Web Application
My solution is create project with .net core 2.0, and then update the framework to 2.1 and all the dependence to latest version