I'm learning .net core and started with .net core 2.2
I'm following this tutorial. https://docs.microsoft.com/en-us/aspnet/core/tutorials/first-web-api?view=aspnetcore-2.2&tabs=visual-studio
I did below.
-> Created New ASP.NET Core Web Application project and selected API template with Asp.NET core 2.2 version -> Build the application
There is a build error with the default application created.
The error is "The name WebHost doesn't exist in the current context."
I haven't made any changes to the code yet and the namespace Microsoft.AspNetCore; is present in the using statement.
I'm not sure what i'm missing here. Can you please help?
dotnet --version
anddotnet --info
then check your NetCore version of runtime and SDK? – Khai Nguyen