Error:
C:\\WebApp\\WebApp.csproj : error : The SDK \'Microsoft.NET.Sdk.Web\' specified could not be found. C:\\WebApp\\WebApp.csproj
uninstall and reinstall microsoft .NET core SDK. then restart visual studio. this works for me.