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
I resolved the problem. the cause was that i installed
aspnetcore-runtime-2.1.0-preview1-final-win-x64
and .net core SDK 2.1.4-x64
versions. c:\Program Files\dotnet
c:\Program Files(x86)\dotnet
.To resolve this i
installed the x86 version of the sdk and aspnetcore runtime,
set the MSBuildSDKsPath environmental variable to point to the new installation path.
deleted all obsolete sdks from control panel
The question VS2017 Update 3 'Microsoft.NET.Sdk.Web' could not be found helped in resolving this issue.